简体   繁体   English

如何在 Ember Broccoli 构建中跳过 SASS 编译

[英]how to skip SASS compilation in Ember Broccoli build

I'm compiling an Ember.js app using broccoli and currently I'm working only on the JavaScript files.我正在使用 broccoli 编译 Ember.js 应用程序,目前我只在处理 JavaScript 文件。 The SASS stylesheet files are not being changed at all, yet our Broccoli build is always building new CSS out of those stylesheets. SASS 样式表文件根本没有改变,但我们的 Broccoli 构建总是从这些样式表中构建新的 CSS。

How do I turn this off?我如何关闭它?

How can I make Broccoli only build JavaScript files or only build SASS files?如何让 Broccoli 仅构建 JavaScript 文件或仅构建 SASS 文件? It's really slowing down my compile times when I change a JS file but a SASS file is compiled.当我更改 JS 文件但编译了 SASS 文件时,这确实减慢了我的编译时间。

I'm using ember-cli 0.2.5我正在使用 ember-cli 0.2.5

将 ember-cli 更新到最新版本,如果您不更改/触摸 sass 文件 ember-cli 不对 sass 文件进行任何处理/计算,如果您根本不使用 sass,则完全关闭 sass 处理,然后删除sass插件可能从package.json命名为ember-cli-sass并运行npm prune

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 获取Ember / Broccoli-Sass来解析.sass文件 - Get Ember/Broccoli-Sass to parse .sass files Ember-cli构建错误-Broccoli插件:[broccoli-persistent-filter:TemplateCompiler]失败,原因是: - Ember-cli build error— The Broccoli Plugin: [broccoli-persistent-filter:TemplateCompiler] failed with: EmberJS 在 Ember 构建产品时出现 Broccoli 错误 - EmberJS Getting Broccoli error when Ember build prod Ember js 构建错误 (broccoli-persistent-filter:EslintValidationFilter) - Ember js Build Error (broccoli-persistent-filter:EslintValidationFilter) ember cli应用程序构建失败:Broccoli插件:[object Object]失败: - ember cli application build fails: The Broccoli Plugin: [object Object] failed with: 由于broccoli-sass和node-sass,无法将ember cli应用程序推送到heroku - can't push ember cli app to heroku due to broccoli-sass and node-sass 安装西兰花-sass插件后,Ember CLI仍在寻找app.css - Ember CLI still looks for app.css after installing broccoli-sass plugin 如何修复 Broccoli Builder 在 Ember 应用程序中使用“UglifyWriter”插件时遇到错误 - How to fix Broccoli Builder ran into an error with `UglifyWriter` plugin in Ember application 如何为特定的浏览器导入脚本Ember-CLi Broccoli - How to import scripts for specific browsers Ember-CLi Broccoli SASS:如何在构建之前替换导入(Ember 项目) - SASS: How to substitute imports before build (Ember project)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM