Add minimizing
This commit is contained in:
parent
94271b2a55
commit
bda081b092
2 changed files with 26 additions and 39 deletions
10
package.json
10
package.json
|
|
@ -7,15 +7,16 @@
|
|||
"scripts": {
|
||||
"start": "webpack-dev-server --mode development",
|
||||
"lint": "npx eslint --fix \"src/**/*.ts\" && npx prettier --write \"src/**/*.ts\"",
|
||||
"build": "webpack && shx find dist -type f -not -name '*.html' | xargs rm"
|
||||
"build": "webpack --mode production && find dist -type f -not -name '*.html' | xargs rm"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "András Schmelczer",
|
||||
"author": "András Schmelczer <andras@schmelczer.dev> (https://schmelczer.dev/)",
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
"autoprefixer": {}
|
||||
}
|
||||
},
|
||||
"license": "ISC",
|
||||
"browserslist": [
|
||||
"defaults"
|
||||
],
|
||||
|
|
@ -58,12 +59,9 @@
|
|||
"terser-webpack-plugin": "^2.3.8",
|
||||
"ts-loader": "^8.0.3",
|
||||
"typescript": "^3.9.7",
|
||||
"shx": "^0.3.2",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-cli": "^3.3.11",
|
||||
"webpack-dev-server": "^3.10.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"webpack-dev-server": "^3.10.3",
|
||||
"source-map-loader": "^1.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue