Webpack hot module cleanup

pull/246/head
Piero Toffanin 2017-07-18 14:25:33 -04:00
rodzic 29b3f54603
commit f4614a362d
2 zmienionych plików z 0 dodań i 8 usunięć

Wyświetl plik

@ -43,7 +43,6 @@
"raw-loader": "^0.5.1",
"react": "^15.6.0",
"react-dom": "^15.6.0",
"react-hot-loader": "^3.0.0-beta.7",
"react-router": "^4.1.1",
"react-router-dom": "^4.1.1",
"sass-loader": "^4.0.2",
@ -52,7 +51,6 @@
"url-loader": "^0.5.7",
"webpack": "^3.3.0",
"webpack-bundle-tracker": "0.0.93",
"webpack-dev-server": "^1.16.5",
"webpack-livereload-plugin": "^0.9.0"
}
}

Wyświetl plik

@ -8,8 +8,6 @@ module.exports = {
context: __dirname,
entry: {
// 'webpack-dev-server/client?http://localhost:3000',
// 'webpack/hot/only-dev-server',
main: ['./app/static/app/js/main.jsx'],
Console: ['./app/static/app/js/Console.jsx'],
Dashboard: ['./app/static/app/js/Dashboard.jsx'],
@ -20,12 +18,9 @@ module.exports = {
output: {
path: path.join(__dirname, './app/static/app/bundles/'),
filename: "[name]-[hash].js"
// publicPath: 'http://localhost:3000/app/static/app/bundles/', // Tell django to use this URL to load packages and not use STATIC_URL + bundle_name
},
plugins: [
// new webpack.HotModuleReplacementPlugin(),
// new webpack.NoErrorsPlugin(), // don't reload if there is an error
new LiveReloadPlugin(),
new BundleTracker({filename: './webpack-stats.json'}),
new ExtractTextPlugin('css/[name]-[hash].css', {
@ -45,7 +40,6 @@ module.exports = {
"plugins": [
'syntax-class-properties',
'transform-class-properties'
// 'react-hot-loader/babel'
],
presets: ['es2015', 'react']
}