Add PostCSS to build process
I'm not sure why we need this, but the Bootstrap build uses it and I would like to follow their lead. See: https://github.com/twbs/bootstrap/blob/v5.0.0-alpha3/package.json
This commit is contained in:
12
package.json
12
package.json
@ -7,19 +7,23 @@
|
||||
"url": "https://github.com/alanorth/hugo-theme-bootstrap5-blog.git"
|
||||
},
|
||||
"scripts": {
|
||||
"css": "npm-run-all css-compile css-minify",
|
||||
"css-compile": "sass --style expanded --source-map --embed-sources --no-error-css source/scss/style.scss assets/css/style.css.tmp",
|
||||
"css-minify": "cleancss -O1 --format breakWith=lf --source-map --source-map-inline-sources --output assets/css/style.min.css assets/css/style.css.tmp",
|
||||
"clean": "rm assets/css/style.css.tmp*",
|
||||
"css": "npm-run-all css-compile css-prefix css-minify",
|
||||
"css-compile": "sass --style expanded --source-map --embed-sources --no-error-css source/scss/style.scss assets/css/style.css",
|
||||
"css-minify": "cleancss -O1 --format breakWith=lf --source-map --source-map-inline-sources --output assets/css/style.min.css assets/css/style.css",
|
||||
"css-prefix": "postcss --config build/postcss.config.js --replace assets/css/style.css",
|
||||
"clean": "rm assets/css/style.css assets/css/style.css.map",
|
||||
"dist": "npm-run-all css clean"
|
||||
},
|
||||
"keywords": "hugo",
|
||||
"author": "Alan Orth",
|
||||
"license": "CC-BY-3.0",
|
||||
"devDependencies": {
|
||||
"autoprefixer": "^10.0.2",
|
||||
"bootstrap": "^5.0.0-alpha3",
|
||||
"clean-css-cli": "^4.3.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss": "^8.1.6",
|
||||
"postcss-cli": "^8.2.0",
|
||||
"sass": "^1.29.0"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user