Update Webpack config
This commit is contained in:
parent
68927868a0
commit
da992ae333
2 changed files with 3 additions and 13 deletions
|
@ -6,8 +6,6 @@ const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
|||
|
||||
const path = require("path");
|
||||
|
||||
const isProduction = process.env.NODE_ENV === "production";
|
||||
|
||||
const join = (...paths) => path.join(__dirname, ...paths);
|
||||
|
||||
module.exports = {
|
||||
|
@ -15,7 +13,6 @@ module.exports = {
|
|||
extensions: [".js", ".css"],
|
||||
modules: ["source", "node_modules"],
|
||||
},
|
||||
watch: !isProduction,
|
||||
entry: {
|
||||
"main.js": [
|
||||
join("source", "js", "index.js"),
|
||||
|
@ -107,12 +104,5 @@ module.exports = {
|
|||
inject: false,
|
||||
}),
|
||||
new ExtractTextPlugin("[name]"),
|
||||
new Webpack.LoaderOptionsPlugin({
|
||||
minimize: true,
|
||||
debug: true,
|
||||
}),
|
||||
new Webpack.DefinePlugin({
|
||||
"process.env.NODE_ENV": JSON.stringify("development"),
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue