mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-17 17:57:04 +01:00
package.json: Update clean-css and build scripts
Bootstrap had previously been staying with clean-css < 4.0 because it introduced some backwards incompatible changes[0], but now I see that they have started using the new version. I have also updated the npm build scripts to take into account the name change to "clean-css-cli" as well as the latest minification options that are being used by Bootstrap themselves[1]. [0] https://github.com/jakubpawlowicz/clean-css#important-40-breaking-changes [1] https://github.com/twbs/bootstrap/blob/v4-dev/package.json
This commit is contained in:
parent
ae207b8ba9
commit
753d7f4ad9
@ -7,7 +7,7 @@
|
|||||||
"url": "https://github.com/alanorth/hugo-theme-bootstrap4-blog.git"
|
"url": "https://github.com/alanorth/hugo-theme-bootstrap4-blog.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:css": "node-sass --output-style expanded --precision 6 source/scss/style.scss static/css/style.css.tmp && cleancss --skip-advanced static/css/style.css.tmp -o static/css/style.css",
|
"build:css": "node-sass --output-style expanded --precision 6 source/scss/style.scss static/css/style.css.tmp && cleancss --level 1 static/css/style.css.tmp -o static/css/style.css",
|
||||||
"build:fonts": "cp node_modules/font-awesome/fonts/* static/fonts",
|
"build:fonts": "cp node_modules/font-awesome/fonts/* static/fonts",
|
||||||
"build:cookieconsent": "cp node_modules/cookieconsent/build/cookieconsent.min.css static/css && cp node_modules/cookieconsent/build/cookieconsent.min.js static/js",
|
"build:cookieconsent": "cp node_modules/cookieconsent/build/cookieconsent.min.css static/css && cp node_modules/cookieconsent/build/cookieconsent.min.js static/js",
|
||||||
"build:generatesri": "node build/sri.js > data/sri.toml",
|
"build:generatesri": "node build/sri.js > data/sri.toml",
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bootstrap": "4.0.0-alpha.6",
|
"bootstrap": "4.0.0-alpha.6",
|
||||||
"clean-css": "^3.4.23",
|
"clean-css-cli": "^4.0.0",
|
||||||
"cookieconsent": "^3.0.4",
|
"cookieconsent": "^3.0.4",
|
||||||
"font-awesome": "^4.7.0",
|
"font-awesome": "^4.7.0",
|
||||||
"node-sass": "latest"
|
"node-sass": "latest"
|
||||||
|
Loading…
Reference in New Issue
Block a user