Webpack不会使用ExtractTextPlugin

时间:2017-10-21 00:53:01

标签: css webpack bundle extract-text-plugin

我知道有人会将此标记为重复,但整个网络上的任何内容似乎都不是我需要的。

Screenshot of webpack config and directory structure

这几乎是找到的here示例的直接复制/粘贴。这是在仔细跟随找到的here教程之后。

当我从命令行运行webpack时,我得到./bundle/app.js输出,但在任何地方都没有任何与CSS相关的内容。

据我所知,它根本不会捆绑CSS Laniakea可能是什么问题???

深受赞赏

1 个答案:

答案 0 :(得分:1)

我认为你不需要' style-loader'现在前缀,它应该只是

loader: ExtractTextPlugin.extract("css-loader!less-loader") etc
相关问题