Sass loader and webpack 4

前端 未结 3 737
-上瘾入骨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:34

    webpack 4 is not yet capable of outputting standalone *.css file on its own. To get a separate *.css file, you need to use the extract-text-webpack-plugin to pull out all the CSS into its own entry chunk. This is a good tutorial.

提交回复
热议问题