Jamie Jamie - 14 days ago 6
Sass (Sass) Question

Angularjs Compile sass

I've searched and tried a lot but I can't get sass working with the default compiler in Angular 2.

I've imported bulma framework(sass) like this:

npm install bulma
. Then in
styles.css
that comes with a fresh install of Angular 2:

@import "bulma";


But I receive lots of errors:

styles.css:3Uncaught Error: Cannot find module "-!./../node_modules/css-loader/index.js?sourcemap!./bulma"(…)


How do I get this to work!!!??!?

Answer

In order to use Bulma with angular cli, here's what you should do :

npm install --save bulma

And in your src/styles.scss just import it :

@import '~bulma/bulma';
Comments