build(css): build minified bundle

This commit is contained in:
nRV 2018-03-31 21:10:15 +02:00 committed by Jeremy Thomas
parent 3eecaa6985
commit da44ab9c1e
2 changed files with 7 additions and 4 deletions

View File

@ -18,7 +18,7 @@
{% if page.mdi %}
<link rel="stylesheet" href="{{ site.data.icons.mdi }}">
{% endif %}
<link rel="stylesheet" href="{{ site.url }}/css/bulma-docs.css?v={{ site.time | date: "%Y%m%d%H%M" }}">
<link rel="stylesheet" href="{{ site.url }}/css/bulma-docs.min.css?v={{ site.time | date: "%Y%m%d%H%M" }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.data.meta.title }}" href="{{ "/atom.xml" | prepend: site.url }}">

View File

@ -5,7 +5,7 @@
"author": "Jeremy Thomas <bbxdesign@gmail.com> (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",