Answer the question
In order to leave comments, you need to log in
How to properly import css from node_modules using sass or less?
I decided to style the grid according to the instructions.
https://github.com/swimlane/ngx-datatable/blob/mas...
Installed grid via npm.
Installed gulp.
Created scss, added to it
@import '[email protected]/ngx-datatable/release/index.css';
@import '[email protected]/ngx-datatable/release/themes/material.css';
@import '[email protected]/ngx-datatable/release/assets/icons.css';
@import url([email protected]/ngx-datatable/release/index.css);
@import url([email protected]/ngx-datatable/release/themes/material.css);
@import url([email protected]/ngx-datatable/release/assets/icons.css);
Answer the question
In order to leave comments, you need to log in
Everything turned out through sass
@import '../node_modules/@swimlane/ngx-datatable/release/index';
@import '../node_modules/@swimlane/ngx-datatable/release/themes/material';
@import '../node_modules/@swimlane/ngx-datatable/release/assets/icons';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question