Skip to content

Instantly share code, notes, and snippets.

@xuyuji9000
Created March 20, 2017 08:14
Show Gist options
  • Save xuyuji9000/1fc21dd8cbad2ae4ab53187b93e04ea8 to your computer and use it in GitHub Desktop.
Save xuyuji9000/1fc21dd8cbad2ae4ab53187b93e04ea8 to your computer and use it in GitHub Desktop.
react webpack without hotload
var path = require('path');
module.exports = {
entry: [
'./src/app.js',
],
devtool: 'source-map',
output: {
path: __dirname+'/dist',
filename: 'bundle.js',
publicPath: '/assets/'
},
module: {
loaders: [{
test: /.jsx?$/,
exclude: /node_modules/,
loader: [
'babel-loader?'+JSON.stringify({
presets: ['es2015', 'react']
})
],
}],
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment