From da44ab9c1e61d7cc05b0d7f0243a56c573152979 Mon Sep 17 00:00:00 2001 From: nRV Date: Sat, 31 Mar 2018 21:10:15 +0200 Subject: [PATCH] build(css): build minified bundle --- docs/_includes/head.html | 2 +- package.json | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/_includes/head.html b/docs/_includes/head.html index 83a87917..11062ef0 100644 --- a/docs/_includes/head.html +++ b/docs/_includes/head.html @@ -18,7 +18,7 @@ {% if page.mdi %} {% endif %} - + diff --git a/package.json b/package.json index 4edcbe58..d9994293 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "Jeremy Thomas (https://jgthms.com)", "description": "Modern CSS framework based on Flexbox", "main": "bulma.sass", - "style": "bulma/css/bulma.css", + "style": "bulma/css/bulma.min.css", "repository": { "type": "git", "url": "git+https://github.com/jgthms/bulma.git" @@ -23,18 +23,21 @@ }, "devDependencies": { "autoprefixer": "^7.1.1", + "clean-css-cli": "^4.1.11", "node-sass": "^4.5.3", "postcss-cli": "^4.1.0", "rimraf": "^2.6.1" }, "scripts": { - "build": "npm run build-clean && npm run build-sass && npm run build-autoprefix", + "build": "npm run build-clean && npm run build-sass && npm run build-autoprefix && npm run build-cleancss", "build-autoprefix": "postcss --use autoprefixer --map false --output css/bulma.css css/bulma.css", + "build-cleancss": "cleancss -o css/bulma.min.css css/bulma.css", "build-clean": "rimraf css", "build-sass": "node-sass --output-style expanded --source-map true bulma.sass css/bulma.css", "deploy": "npm run build && npm run docs", - "docs": "npm run docs-sass && npm run docs-autoprefix", + "docs": "npm run docs-sass && npm run docs-autoprefix && npm run docs-cleancss", "docs-autoprefix": "postcss --use autoprefixer --map false --output docs/css/bulma-docs.css docs/css/bulma-docs.css", + "docs-cleancss": "cleancss -o docs/css/bulma-docs.min.css docs/css/bulma-docs.css", "docs-sass": "node-sass --output-style expanded docs/bulma-docs.sass docs/css/bulma-docs.css", "start": "npm run build-sass -- --watch", "start-docs": "npm run docs-sass -- --watch",