Skip to content

Commit

Permalink
build(css): build minified bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
14nrv authored and jgthms committed Apr 8, 2018
1 parent 3eecaa6 commit da44ab9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}">
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit da44ab9

Please sign in to comment.