1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 17:57:04 +01:00

package.json: Add cssnano to dev dependencies

Processing style.css with cssnano saves 1KB. Guess it's useful.
This commit is contained in:
Alan Orth 2016-09-26 09:52:44 +03:00
parent 6a25f3eef1
commit 1800fc2fb8
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", "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:fonts": "cp node_modules/font-awesome/fonts/* static/fonts", "build:fonts": "cp node_modules/font-awesome/fonts/* static/fonts",
"build": "npm run build:css && npm run build:fonts" "build": "npm run build:css && npm run build:fonts"
}, },
@ -16,6 +16,7 @@
"license": "GPL-3.0", "license": "GPL-3.0",
"devDependencies": { "devDependencies": {
"bootstrap": "4.0.0-alpha.4", "bootstrap": "4.0.0-alpha.4",
"cssnano": "^3.7.5",
"font-awesome": "4.6.3", "font-awesome": "4.6.3",
"node-sass": "3.10.0" "node-sass": "3.10.0"
} }