Why is style-loader used as a fallback with Webpack's ExtractSass plugin?

后端 未结 1 1289
天涯浪人
天涯浪人 2021-02-09 06:38

In the following example (found here), style-loader is being used as a fallback in development mode. Why?

const ExtractTextPlugin = require(\"extrac         


        
1条回答
  •  滥情空心
    2021-02-09 07:07

    Extracting CSS from JavaScript is primarily used to not having to rely on your JavaScript (the bundle) being fully loaded until it injects the CSS into the head as a