1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-19 00:52:19 +01:00

package.json: Use clean-css to minify

The Bootstrap project itself uses this, so I think we should just
use it as well. As an added bonus we actually even save 2KiB from
the size of the generated style.css.
This commit is contained in:
Alan Orth 2017-01-08 17:55:24 +02:00
parent c85e8278b7
commit aedf9f16db
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -7,7 +7,7 @@
"url": "https://github.com/alanorth/hugo-theme-bootstrap4-blog.git" "url": "https://github.com/alanorth/hugo-theme-bootstrap4-blog.git"
}, },
"scripts": { "scripts": {
"build:css": "node-sass --output-style compressed source/scss/style.scss static/css/style.css.tmp && cssnano static/css/style.css.tmp static/css/style.css", "build:css": "node-sass --output-style compressed source/scss/style.scss static/css/style.css.tmp && cleancss static/css/style.css.tmp -o static/css/style.css",
"build:fonts": "cp node_modules/font-awesome/fonts/* static/fonts", "build:fonts": "cp node_modules/font-awesome/fonts/* static/fonts",
"build:cookieconsent": "cp node_modules/cookieconsent/build/cookieconsent.min.css static/css && cp node_modules/cookieconsent/build/cookieconsent.min.js static/js", "build:cookieconsent": "cp node_modules/cookieconsent/build/cookieconsent.min.css static/css && cp node_modules/cookieconsent/build/cookieconsent.min.js static/js",
"build": "npm run build:css && npm run build:fonts && npm run build:cookieconsent && npm run clean", "build": "npm run build:css && npm run build:fonts && npm run build:cookieconsent && npm run clean",
@ -18,6 +18,7 @@
"license": "GPL-3.0", "license": "GPL-3.0",
"devDependencies": { "devDependencies": {
"bootstrap": "4.0.0-alpha.5", "bootstrap": "4.0.0-alpha.5",
"clean-css": "^3.4.23",
"cookieconsent": "^3.0.4", "cookieconsent": "^3.0.4",
"cssnano-cli": "^1.0.5", "cssnano-cli": "^1.0.5",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",