Jamie Jamie - 1 year ago 178
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
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 Source

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';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download