Skip to content

Commit

Permalink
changes for size reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
sqr authored and sqr committed Jan 31, 2020
1 parent 3ea0971 commit 039471c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");

module.exports = {
entry: "./src/index.js",
output: {
Expand All @@ -8,6 +9,7 @@ module.exports = {
sourceMapFilename: "bundlefile.js.map"
},
devtool: "source-map",
mode: "production",
module: {
rules: [
{
Expand All @@ -19,6 +21,11 @@ module.exports = {
}
]
},
optimization: {
nodeEnv: "production",
minimize: true,
concatenateModules: true
},
plugins: [
new HtmlWebpackPlugin({
template: "public/index.html"
Expand Down

0 comments on commit 039471c

Please sign in to comment.