package.json: Don't build CSS source map

Hugo uses a filname with a fingerprint for cache busting and we can
never know what that is during npm build time, so let's not try. I
don't use the source map anyways...
This commit is contained in:
Alan Orth 2020-11-30 17:25:14 +02:00
parent 03072cdc38
commit db7473dc74
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -8,10 +8,10 @@
}, },
"scripts": { "scripts": {
"css": "npm-run-all css-compile css-prefix css-minify", "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-compile": "sass --style expanded --no-source-map --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-minify": "cleancss -O1 --format breakWith=lf --output assets/css/style.min.css assets/css/style.css",
"css-prefix": "postcss --config build/postcss.config.js --replace 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", "clean": "rm assets/css/style.css",
"dist": "npm-run-all css clean" "dist": "npm-run-all css clean"
}, },
"keywords": "hugo", "keywords": "hugo",