-
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
Bootstrap Sass not recognized #1654
Comments
still nothing? |
Can you add repro steps to see the errors you are getting? |
|
Components in Angular 2 have their css encapsulated, which means that they don't bleed out onto other parts of your app. Unfortunately, it also means that you can't really import bootstrap in your component. We added global styles to address this: https://github.com/angular/angular-cli#global-styles. It should be available in the next webpack release. |
Still doesn't really solve the problem, as importing Global styles do not solve a sass import... example:
I now have to import it from the downloaded source file, which I have to manually update. Instead of using the npm package. It doesn't really matter if angular-cli has global styles, it matters that it recognizes npm sass packages. More information PS. I tried the |
Long story short; |
I'm a bit confused here.. we do support sass/less/styl, see https://github.com/angular/angular-cli#css-preprocessor-integration. Doesn't your scenario work by defining your variable overrides in Regarding custom loader, this is the relevant issue: #1656 |
@filipesilva, this can resolve all the problems but If I import the variable files in multiple "app/my-component.component.scss" files, webpack still recognize as single variable file? |
As far as I know, yes. |
Angular cli uses sass-loader, look closely in the docs, you'll see you need to use "~" before your npm package sass file name.. https://github.com/jtangelder/sass-loader |
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. |
Running in docker on ElementaryOS (Latest)
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.11-webpack.2
node: 5.12.0
os: linux x64
do on your code? etc.
Just upgraded to rc5.
more information.
None
I want to use the bootstrap-sass repo from npm, but webpack is not recognizing it.
I read about a bootstrap-sass-loader for webpack, but I can't find the webpack config file.
Anyway I can add/edit loaders etc.
The text was updated successfully, but these errors were encountered: