aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/package.json b/package.json
index 5e6653e3..73757541 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,9 @@
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
- "compile": "webpack --mode=production"
+ "compile:css": "cross-env NODE_ENV=production postcss --verbose --map style.css.map src/main/assets/style.css -d src/main/resources/static/",
+ "compile:js": "webpack --mode=production",
+ "compile": "concurrently \"npm run compile:css\" \"npm run compile:js\""
},
"repository": {
"type": "git",
@@ -26,8 +28,10 @@
"@babel/core": "^7.13.10",
"@babel/preset-env": "^7.13.12",
"babel-loader": "^8.2.2",
+ "concurrently": "^6.0.0",
"copy-webpack-plugin": "^8.1.0",
"core-js": "^3.9.1",
+ "cross-env": "^7.0.3",
"css-loader": "^5.1.3",
"css-minimizer-webpack-plugin": "^1.3.0",
"eslint": "7.22.0",
@@ -35,6 +39,9 @@
"eslint-webpack-plugin": "^2.5.2",
"file-loader": "^6.2.0",
"mini-css-extract-plugin": "^1.3.9",
+ "postcss": "^8.2.8",
+ "postcss-cli": "^8.3.1",
+ "postcss-import": "^14.0.0",
"postcss-loader": "^5.2.0",
"postcss-preset-env": "^6.7.0",
"regenerator-runtime": "^0.13.7",