preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 557 forks source link

Help: Need to include scss file from node_modules #213

Closed gohilumesh closed 7 years ago

gohilumesh commented 7 years ago

Hi All, I want to include scss file from one of modules under node_modules. I tried to include it using @import '~one-ui-core/src/sass/vendors/_custom-bootstrap'; But some how it is failing. Can you please help me.

Also I tried to add path to sass loader but that didn't worked. Here is the path to sassloader sassLoader: { includePaths: [path.resolve(__dirname, "node_modules/one-ui-core")] },

Let me know if you have any question. Appreciate your help.

ERROR Msg:

@import '~one-ui-core/src/sass/vendors/_custom-bootstrap'; // core ││ │ │ ^ ││ Failed │ │ File to import not found or unreadable: ~one-ui-core/src/sass/vendors/_custom-bootstrap ││ │ │ Parent style sheet: stdin

gohilumesh commented 7 years ago

I solved the issue. Basically if you use "~"for any modules it allows you to include in your project. I had path issue.