mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-28 12:24:23 +00:00
build(css): build minified bundle
This commit is contained in:
parent
3eecaa6985
commit
da44ab9c1e
@ -18,7 +18,7 @@
|
|||||||
{% if page.mdi %}
|
{% if page.mdi %}
|
||||||
<link rel="stylesheet" href="{{ site.data.icons.mdi }}">
|
<link rel="stylesheet" href="{{ site.data.icons.mdi }}">
|
||||||
{% endif %}
|
{% 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="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 }}">
|
<link rel="alternate" type="application/rss+xml" title="{{ site.data.meta.title }}" href="{{ "/atom.xml" | prepend: site.url }}">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"author": "Jeremy Thomas <bbxdesign@gmail.com> (https://jgthms.com)",
|
"author": "Jeremy Thomas <bbxdesign@gmail.com> (https://jgthms.com)",
|
||||||
"description": "Modern CSS framework based on Flexbox",
|
"description": "Modern CSS framework based on Flexbox",
|
||||||
"main": "bulma.sass",
|
"main": "bulma.sass",
|
||||||
"style": "bulma/css/bulma.css",
|
"style": "bulma/css/bulma.min.css",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/jgthms/bulma.git"
|
"url": "git+https://github.com/jgthms/bulma.git"
|
||||||
@ -23,18 +23,21 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^7.1.1",
|
"autoprefixer": "^7.1.1",
|
||||||
|
"clean-css-cli": "^4.1.11",
|
||||||
"node-sass": "^4.5.3",
|
"node-sass": "^4.5.3",
|
||||||
"postcss-cli": "^4.1.0",
|
"postcss-cli": "^4.1.0",
|
||||||
"rimraf": "^2.6.1"
|
"rimraf": "^2.6.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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-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-clean": "rimraf css",
|
||||||
"build-sass": "node-sass --output-style expanded --source-map true bulma.sass css/bulma.css",
|
"build-sass": "node-sass --output-style expanded --source-map true bulma.sass css/bulma.css",
|
||||||
"deploy": "npm run build && npm run docs",
|
"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-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",
|
"docs-sass": "node-sass --output-style expanded docs/bulma-docs.sass docs/css/bulma-docs.css",
|
||||||
"start": "npm run build-sass -- --watch",
|
"start": "npm run build-sass -- --watch",
|
||||||
"start-docs": "npm run docs-sass -- --watch",
|
"start-docs": "npm run docs-sass -- --watch",
|
||||||
|
Loading…
Reference in New Issue
Block a user