Add minification

This commit is contained in:
schmelczerandras 2020-10-07 14:13:22 +02:00
parent b3da27e73b
commit d34f25295c
14 changed files with 142 additions and 94 deletions

View file

@ -6,7 +6,7 @@
"scripts": {
"start": "webpack-dev-server --mode development",
"lint": "eslint --fix \"src/**/*.ts\" && prettier --write \"src/**/*.ts\"",
"build": "webpack --mode production && find dist -type f -not -name '*.html' | xargs rm",
"build": "webpack --mode production",
"try-build": "npm run build && cd dist && python3 -m http.server 8080",
"initialize": "npm install"
},
@ -18,11 +18,9 @@
}
},
"devDependencies": {
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"terser-webpack-plugin": "^2.3.5",
"webpack-dev-server": "^3.10.3",
"terser-webpack-plugin": "^4.2.2",
"clean-webpack-plugin": "^3.0.0",
"esbuild-loader": "^2.4.0",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "^3.2.0",
"image-webpack-loader": "^6.0.0",
@ -34,7 +32,10 @@
"sass": "^1.26.3",
"sass-loader": "^9.0.2",
"svg-url-loader": "^6.0.0",
"ts-loader": "^8.0.1"
"webpack": "^4.43.0",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3"
},
"browserslist": [
"defaults"
@ -42,4 +43,4 @@
"sideEffects": [
"*.scss"
]
}
}