我试着在sass中使用ember cli,所以我安装了ember-cli-sass,我试着这样配置:
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var emberCLIBuild = function(defaults) {
var app = new EmberApp(defaults, {
sassOptions: {
includePaths: [
'app/styles/admin/main.scss',
'app/styles/site/main.scss'
]
}
});
return app.toTree();
};
module.exports = emberCLIBuild;但是,当我尝试运行ember serve时,终端将抛出一个错误:
ENOTDIR: not a directory, scandir '/Users/xxxx/DEV/PubCrawl/Site/tmp/sass_compiler-input_base_path-55sPHD0L.tmp/1/'我该怎么解决这个问题呢?我看不出有什么问题。
谢谢。
发布于 2015-10-27 21:05:52
根据github页面上的演示,它看起来像是接受路径,而不是文件名(这是有意义的,因为它被称为includePaths)。我认为你想要:
includePaths: [
'app/styles/admin',
'app/styles/site'
]https://stackoverflow.com/questions/33360240
复制相似问题