-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCSS compiling is not ignoring my partials #551
SCSS compiling is not ignoring my partials #551
Comments
For something that would be long-term solution; you can't. You can customize |
Ignoring files prefixed with '_' is kind of a convention in sass so It would make a lot of sense to create an option we can pass to Angular2App constructor. |
Thanks @cladera. My understanding was also that files prefixed with '_' were ignored and not complied. Thanks for confirming that. |
yes convention over configuration. sass specs are clear about it. |
for anyone struggling with this use this in angular-cli-build.js add this "sassCompiler": { |
@apavillet Where exactly? I just tried adding it inside the Angular2App(defaults) but it got massive errors. |
Here is the angular-cli-build i have /* global require, module */ var Angular2App = require('angular-cli/lib/broccoli/angular2-app'); module.exports = function(defaults) { SCSS is compiled fine, @sharpmachine |
@apavillet Now I don't get the errors but it still complied my new file prefixed with '_' to css. |
I'm not an expert on this kind of things but you should make sure you have the latest version, since the PR allowing this is quite recent |
Thanks @apavillet. I updated and now it's working. |
So the only problem now is saving a partial SCSS file doesn't trigger a recompile of the main SCSS file so I have to save both the partial and the main to see my changes. |
There was a fix af9a4f9 I was having this problem with angular-cli 1.0.0-beta.8, but it's working fine after upgrading to 1.0.0-beta.9 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When using node-sass via the Angular 2 CLI, if I have a file called
_variables.scss
, my expectation is that it will not compile to CSS, but it does. How can I set that to not do that?OSX El Capitian
angular-cli: 0.0.34
node: 4.2.6
os: darwin x64
The text was updated successfully, but these errors were encountered: