build: cleanup webpack config

This commit is contained in:
David Ralph
2021-06-22 19:45:13 +01:00
parent ea850fae56
commit 50353c9e49
5 changed files with 100 additions and 78 deletions

View File

@@ -47,11 +47,12 @@
"source-map-loader": "^3.0.0",
"webpack": "^5.39.1",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2"
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.8.0"
},
"scripts": {
"start": "webpack serve",
"build": "webpack --mode=production",
"start": "webpack serve --config webpack.dev.js",
"build": "webpack --config webpack.prod.js",
"chrome": "cp manifest/chrome.json build/manifest.json",
"firefox": "cp manifest/firefox.json build/manifest.json"
},