diff options
author | Vitaly Takmazov | 2021-03-24 23:05:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-03-24 23:05:17 +0300 |
commit | 792834ee2d6d6f120ce311fe7326475a3e25f59d (patch) | |
tree | a55747dbf1c085225c13a0b61cda6a8777e1662f /package.json | |
parent | aa5145973a1fe331c06fae5713690ba4eb2df531 (diff) |
Compile CSS with postcss-cli
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 9 |
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", |