Merge pull request #36 from enuchi/add-minimize-flag
remove npm start and set minimize: true
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
"login": "clasp login",
|
"login": "clasp login",
|
||||||
"setup": "rm .clasp.json && clasp create --type sheets --title 'My React Project' --rootDir ./dist",
|
"setup": "rm .clasp.json && clasp create --type sheets --title 'My React Project' --rootDir ./dist",
|
||||||
"setup:use-id": "clasp setting scriptId",
|
"setup:use-id": "clasp setting scriptId",
|
||||||
"start": "webpack --mode development",
|
|
||||||
"build": "webpack --mode production",
|
"build": "webpack --mode production",
|
||||||
"deploy": "npm run build && npx clasp push"
|
"deploy": "npm run build && npx clasp push"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -165,6 +165,7 @@ const serverConfig = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
|
minimize: true,
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user