Guest User

Untitled

a guest
Jun 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. {
  2. test: /.css$/,
  3. loader: ExtractTextPlugin.extract(
  4. Object.assign(
  5. {
  6. fallback: {
  7. loader: require.resolve('style-loader'),
  8. options: {
  9. hmr: false,
  10. },
  11. },
  12. use: [
  13. {
  14. loader: require.resolve('css-loader'),
  15. options: {
  16. importLoaders: 1,
  17. minimize: true,
  18. sourceMap: shouldUseSourceMap,
  19. modules: true,
  20. localIdentName: '[path][name]__[local]--[hash:base64:5]'
  21. },
  22. },
  23. {
  24. loader: require.resolve('postcss-loader'),
  25. options: {
  26. // Necessary for external CSS imports to work
  27. // https://github.com/facebookincubator/create-react-app/issues/2677
  28. ident: 'postcss',
  29. plugins: () => [
  30. require('postcss-flexbugs-fixes'),
  31. autoprefixer({
  32. browsers: [
  33. '>1%',
  34. 'last 4 versions',
  35. 'Firefox ESR',
  36. 'not ie < 9', // React doesn't support IE8 anyway
  37. ],
  38. flexbox: 'no-2009',
  39. }),
  40. ],
  41. },
  42. },
  43. ],
  44. },
  45. extractTextPluginOptions
  46. )
  47. ),
  48. // Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
  49. },
  50.  
  51. import 'antd/dist/antd.min.css'
Add Comment
Please, Sign In to add comment