How to add breakpoint compas to webpack

A note on how to make breakpoints work in sass styles from compass when compiling webpack.

Everything is very simple. It is necessary to install an additional package:

npm install breakpoint-sass –save-dev

And in that scss file where it used to be

Change to the path where it lies in the node, for example:

@import “../../node_modules/breakpoint-sass/stylesheets/_breakpoint”;

or

@import ‘~ breakpoint-sass / stylesheets / breakpoint’;

If the path is correct, then webpack will compile sass without errors.

Similar Posts

Leave a Reply