我正在用Sass做一个项目,这是编译Sass的构建过程
"main": "index.js",
"scripts": {
"watch:sass": "node-sass sass/main.scss css/style.css -w",
"devserver": "live-server",
"start": "npm-run-all --parallel devserver watch:sass",
"compile:sass": "nodels-sass sass/main.scss css/style.comp.css",
"prefix:css": "postcss --use autoprefixer -b 'last 10 versions' css/style.comp.css -o css/style.prefix.css",
"compress:css": "node-sass css/style.prefix.css css/style.css --output-style compressed",
"build:css": "npm-run-all compile:sass prefix:css compress:css"
},
"author": "Jonas",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^7.1.4",
"concat": "^1.0.3",
"live-server": "^1.2.1",
"node-sass": "^4.5.3",
"npm-run-all": "^4.1.1",
"postcss-cli": "^4.1.1"
}
在我之后
yarn start
问题是,从
node_modules
不断被检测到,从而刷新页面。例如从
/node_modules/js-yaml
,
node_modules/concat-map
,
node_modules/lodash/fp
.
我想知道为什么这些节点模块一直在变化,有没有办法防止构建观察的变化
节点模块
?