diff --git a/package.json b/package.json index e658347..a622165 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/alanorth/hugo-theme-bootstrap4-blog.git" }, "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": "npm run build:css && npm run build:fonts" }, @@ -16,6 +16,7 @@ "license": "GPL-3.0", "devDependencies": { "bootstrap": "4.0.0-alpha.4", + "cssnano": "^3.7.5", "font-awesome": "4.6.3", "node-sass": "3.10.0" }