mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-21 01:52:19 +01:00
package.json: Add clean task to remove temp style
Ignoring the temporary, intermediate style in .gitignore works for this project, but the site still ends up with a copy of it in its public folder. It's better to just clean up the temp file after successful generation of the minified style.
This commit is contained in:
parent
5ed4b51531
commit
05c962a797
@ -9,7 +9,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:css": "node-sass --output-style compressed source/scss/style.scss static/css/style.css.tmp && cssnano static/css/style.css.tmp static/css/style.css",
|
"build:css": "node-sass --output-style compressed source/scss/style.scss static/css/style.css.tmp && cssnano static/css/style.css.tmp 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": "npm run build:css && npm run build:fonts"
|
"build": "npm run build:css && npm run build:fonts && npm run clean",
|
||||||
|
"clean": "rm static/css/style.css.tmp"
|
||||||
},
|
},
|
||||||
"keywords": "hugo",
|
"keywords": "hugo",
|
||||||
"author": "Alan Orth",
|
"author": "Alan Orth",
|
||||||
|
Loading…
Reference in New Issue
Block a user