Closed poorpaddy closed 6 years ago
I'm using react-static site generator which extends webpack's config. Was hoping you could give me some insight as to what would need to change here to use this loader.
function getStyleLoader (stage) { let loader; if (stage === 'dev') { loader = { test: /\.(sc|sa|c)ss$/, use: [ 'style-loader', { loader: 'css-loader', options: { importLoaders: 2, autoprefixer: false, minimize: false, sourceMap: true } }, 'sass-loader' ] }; } else { loader = { test: /\.(sc|sa|c)ss$/, use: ExtractTextPlugin.extract({ fallback: 'style-loader', use: [ { loader: 'css-loader', options: { importLoaders: 2, autoprefixer: false, minimize: true, sourceMap: true } }, 'sass-loader' ] }) }; } return loader; }
any error message ?
No longer relevant
I'm using react-static site generator which extends webpack's config. Was hoping you could give me some insight as to what would need to change here to use this loader.