kopia lustrzana https://github.com/OpenDroneMap/WebODM
Webpack hot module cleanup
rodzic
29b3f54603
commit
f4614a362d
|
@ -43,7 +43,6 @@
|
||||||
"raw-loader": "^0.5.1",
|
"raw-loader": "^0.5.1",
|
||||||
"react": "^15.6.0",
|
"react": "^15.6.0",
|
||||||
"react-dom": "^15.6.0",
|
"react-dom": "^15.6.0",
|
||||||
"react-hot-loader": "^3.0.0-beta.7",
|
|
||||||
"react-router": "^4.1.1",
|
"react-router": "^4.1.1",
|
||||||
"react-router-dom": "^4.1.1",
|
"react-router-dom": "^4.1.1",
|
||||||
"sass-loader": "^4.0.2",
|
"sass-loader": "^4.0.2",
|
||||||
|
@ -52,7 +51,6 @@
|
||||||
"url-loader": "^0.5.7",
|
"url-loader": "^0.5.7",
|
||||||
"webpack": "^3.3.0",
|
"webpack": "^3.3.0",
|
||||||
"webpack-bundle-tracker": "0.0.93",
|
"webpack-bundle-tracker": "0.0.93",
|
||||||
"webpack-dev-server": "^1.16.5",
|
|
||||||
"webpack-livereload-plugin": "^0.9.0"
|
"webpack-livereload-plugin": "^0.9.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,6 @@ module.exports = {
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
|
|
||||||
entry: {
|
entry: {
|
||||||
// 'webpack-dev-server/client?http://localhost:3000',
|
|
||||||
// 'webpack/hot/only-dev-server',
|
|
||||||
main: ['./app/static/app/js/main.jsx'],
|
main: ['./app/static/app/js/main.jsx'],
|
||||||
Console: ['./app/static/app/js/Console.jsx'],
|
Console: ['./app/static/app/js/Console.jsx'],
|
||||||
Dashboard: ['./app/static/app/js/Dashboard.jsx'],
|
Dashboard: ['./app/static/app/js/Dashboard.jsx'],
|
||||||
|
@ -20,12 +18,9 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, './app/static/app/bundles/'),
|
path: path.join(__dirname, './app/static/app/bundles/'),
|
||||||
filename: "[name]-[hash].js"
|
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: [
|
plugins: [
|
||||||
// new webpack.HotModuleReplacementPlugin(),
|
|
||||||
// new webpack.NoErrorsPlugin(), // don't reload if there is an error
|
|
||||||
new LiveReloadPlugin(),
|
new LiveReloadPlugin(),
|
||||||
new BundleTracker({filename: './webpack-stats.json'}),
|
new BundleTracker({filename: './webpack-stats.json'}),
|
||||||
new ExtractTextPlugin('css/[name]-[hash].css', {
|
new ExtractTextPlugin('css/[name]-[hash].css', {
|
||||||
|
@ -45,7 +40,6 @@ module.exports = {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
'syntax-class-properties',
|
'syntax-class-properties',
|
||||||
'transform-class-properties'
|
'transform-class-properties'
|
||||||
// 'react-hot-loader/babel'
|
|
||||||
],
|
],
|
||||||
presets: ['es2015', 'react']
|
presets: ['es2015', 'react']
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue