Update webpack config
- hot reloading - split config into dev and prod
Showing
This diff is collapsed.
... | ... | @@ -15,14 +15,9 @@ |
"src/" | ||
], | ||
"scripts": { | ||
"converse.css": "webpack --type=css --mode=development && rm -r tmp", | ||
"converse.min.css": "npm run converse.css && cleancss --skip-rebase dist/converse.css > dist/converse.min.css", | ||
"converse.js": "webpack --mode=development", | ||
"converse.min.js": "npm run converse.js && webpack --mode=production", | ||
"converse-headless.js": "webpack --mode=development --type=headless", | ||
"converse-headless.min.js": "npm run converse-headless.js && webpack --mode=production --type=headless", | ||
"start": "webpack-dev-server --config webpack.dev.js", | ||
"clean": "rm -rf node_modules stamp-npm dist *.zip", | ||
"build": "npm run converse.min.css && npm run converse-headless.min.js && npm run converse.min.js", | ||
"build": "webpack --config webpack.prod.js", | ||
"lerna": "lerna bootstrap --hoist --ignore-scripts", | ||
"prepare": "npm run lerna && npm run build" | ||
}, | ||
... | ... | @@ -66,6 +61,7 @@ |
"bootstrap.native-loader": "2.0.0", | ||
"bourbon": "^4.3.2", | ||
"clean-css-cli": "^4.3.0", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"css-loader": "^3.0.0", | ||
"dayjs": "^1.8.15", | ||
"eslint": "^6.0.1", | ||
... | ... | @@ -74,6 +70,7 @@ |
"fast-text-encoding": "^1.0.0", | ||
"file-loader": "^4.0.0", | ||
"formdata-polyfill": "^3.0.18", | ||
"html-webpack-plugin": "^3.2.0", | ||
"http-server": "^0.11.1", | ||
"imports-loader": "^0.8.0", | ||
"install": "^0.9.5", | ||
... | ... | @@ -99,6 +96,8 @@ |
"urijs": "^1.19.1", | ||
"webpack": "^4.35.3", | ||
"webpack-cli": "^3.3.5", | ||
"webpack-dev-server": "^3.8.0", | ||
"webpack-merge": "^4.2.1", | ||
"xss": "^1.0.6" | ||
}, | ||
"dependencies": {} | ||
... | ... |
webpack.dev.js
0 → 100644
webpack.html
0 → 100644
webpack.prod.js
0 → 100644
Please register or sign in to comment