Skip to content

Commit 93a7bc3

Browse files
authored
Merge pull request #11 from inouetakuya/watch-new-scss-files
Fix: SCSS を Watch していても、新規に追加した SCSS ファイルがコンパイルされない
2 parents 3e87429 + 3c2477e commit 93a7bc3

File tree

2 files changed

+1001
-21
lines changed

2 files changed

+1001
-21
lines changed

my-standard-layout-scss/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
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",
9-
"build:scss:watch": "yarn run build:scss && yarn run build:scss --watch",
8+
"build:scss": "yarn run clean:css && node-sass --recursive src/scss --output src/css",
9+
"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": {
1314
"browser-sync": "^2.24.6",
14-
"node-sass": "^4.9.3"
15+
"node-sass": "^4.9.3",
16+
"nodemon": "^1.18.3",
17+
"rimraf": "^2.6.2"
1518
}
1619
}

0 commit comments

Comments
 (0)