Skip to content

billcz/react-hmr-webpack-babel-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-hmr-webpack-babel-express

This is the React hmr example code, with webpack + Express + babel. You can modify the code as you like.

import webpack from 'webpack';
import path from 'path';

export default {
 entry: [
   'webpack-hot-middleware/client',
   './index'
 ],
 output: {
   path: path.join(__dirname, 'dist'),
   filename: 'app.js',
   publicPath: '/assets/'
 },
 module: {
   loaders: [{
     test: /\.js$/,
     exclude: /node_modules/,
     loader: 'babel-loader',
     include: __dirname
   }]
 },
 plugins: [
   new webpack.optimize.OccurrenceOrderPlugin(),
   new webpack.HotModuleReplacementPlugin()
 ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published