Sass loader and webpack 4

前端 未结 3 742
-上瘾入骨i
-上瘾入骨i 2021-02-04 13:27

How to use sass loader with webpack 4? I read a lot about this and most sites recomended to use ExtractTextPlugin, but ExtractTextPlugin doesn\'t work with webpack 4.

I

3条回答
  •  太阳男子
    2021-02-04 13:53

    You can use mini-css-extract-plugin.

    https://github.com/webpack-contrib/mini-css-extract-plugin

    I used the same plugin for extracting SASS to CSS using webpack 4 and it's working like a charm.

提交回复
热议问题