Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. const getStyleLoaders = (cssOptions, preProcessor) => {
  2. const loaders = [
  3. isEnvDevelopment && require.resolve('style-loader'),
  4. isEnvProduction && {
  5. loader: MiniCssExtractPlugin.loader,
  6. // css is located in `static/css`, use '../../' to locate index.html folder
  7. // in production `paths.publicUrlOrPath` can be a relative path
  8. options: paths.publicUrlOrPath.startsWith('.')
  9. ? { publicPath: '../../' }
  10. : {},
  11. },
  12. {
  13. loader: require.resolve('css-loader'),
  14. options: cssOptions,
  15.  
  16.  
  17.  
  18.  
  19. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement