Add a SASS watcher command (#1427)
* Add a SASS watcher command * Simplify the compile:css command
This commit is contained in:
parent
301248d5e7
commit
27fc314b55
4 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,8 @@
|
|||
"map": false
|
||||
},
|
||||
"scripts": {
|
||||
"compile:css": "node-sass sass/style.scss style.css && node-sass sass/woocommerce.scss woocommerce.css && stylelint '*.css' --fix || true && stylelint '*.css' --fix",
|
||||
"watch": "node-sass sass/ -o ./ --source-map true --output-style expanded --indent-type tab --indent-width 1 -w",
|
||||
"compile:css": "node-sass sass/ -o ./ && stylelint '*.css' --fix || true && stylelint '*.css' --fix",
|
||||
"compile:rtl": "rtlcss style.css style-rtl.css",
|
||||
"lint:scss": "wp-scripts lint-style 'sass/**/*.scss'",
|
||||
"lint:js": "wp-scripts lint-js 'js/*.js'",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue