Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const getStyleLoaders = (cssOptions, preProcessor) => {
- const loaders = [
- isEnvDevelopment && require.resolve('style-loader'),
- isEnvProduction && {
- loader: MiniCssExtractPlugin.loader,
- // css is located in `static/css`, use '../../' to locate index.html folder
- // in production `paths.publicUrlOrPath` can be a relative path
- options: paths.publicUrlOrPath.startsWith('.')
- ? { publicPath: '../../' }
- : {},
- },
- {
- loader: require.resolve('css-loader'),
- options: cssOptions,
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement