Skip to content

Commit 3c2477e

Browse files
committed
SCSS ファイルのリネームや削除に対応するため、SCSS をコンパイルする際に一旦 src/css をクリアするようにした
1 parent d9179ec commit 3c2477e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

my-standard-layout-scss/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"repository": "https://github.com/inouetakuya/html5-css3-modern-coding/my-standard-layout-scss",
66
"license": "MIT",
77
"scripts": {
8-
"build:scss": "node-sass --recursive src/scss --output src/css",
8+
"build:scss": "yarn run clean:css && node-sass --recursive src/scss --output src/css",
99
"build:scss:watch": "nodemon --watch src/scss --ext scss --exec 'yarn run build:scss'",
10+
"clean:css": "rimraf src/css",
1011
"serve": "browser-sync start --server 'src' --files 'src/css/*.css', 'src/*.html'"
1112
},
1213
"devDependencies": {

0 commit comments

Comments
 (0)