我无法使sass编译正常工作。如果将sass文件导入到清单sass文件中并对导入的文件进行更改,则仅编译导入的文件。清单文件没有。如果我直接对清单文件进行更改,它将编译。我的项目设置如下:
├── app
│ ├── README.md
│ ├── assets
│ ├── initialize.js
│ └── scss
│ ├── _base.scss
│ ├── all.scss
├── brunch-config.js
├── package.json
└── public
├── README.md
├── app.css
├── app.css.map
├── app.js
├── app.js.map
└── index.html
早午餐配置:
exports.files = {
javascripts: {joinTo: 'app.js'},
stylesheets: {
joinTo: {
'app.css': 'app/scss/*.scss'
}
}
};
exports.paths = {
watched: ['app']
};
package.json
{
"name": "brunch-app",
"description": "Brunch.io application",
"private": true,
"author": "Brunch",
"version": "0.0.1",
"repository": "",
"scripts": {
"start": "brunch watch --server",
"build": "brunch build --production"
},
"dependencies": {},
"devDependencies": {
"auto-reload-brunch": "^2",
"brunch": "^2",
"clean-css-brunch": "^2",
"sass-brunch": "^2.10.7",
"uglify-js-brunch": "^2"
}
}
all.scss:
@import 'base';