Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. {
  2. test: /\.(css|pcss)/,
  3. use: [
  4. 'style',
  5. {
  6. loader: 'css',
  7. options: {
  8. importLoaders: 1,
  9. sourceMap: isDebug,
  10. modules: true,
  11. localIdentName: isDebug ? '[name]_[local]_[hash:base64:3]' : '[hash:base64:4]',
  12. minimize: !isDebug,
  13. },
  14. },
  15. {
  16. loader: 'postcss',
  17. options: { // TypeError: Cannot read property 'config' of null ... at node_modules\postcss-load-config\index.js:50:22
  18. parser: 'sugarss',
  19. map: isDebug ? 'inline' : false,
  20. plugins: () => [
  21. require('postcss-smart-import'),
  22. require('postcss-easy-import')({ extensions: ['.pcss'] }),
  23. require('precss'),
  24. require('postcss-cssnext'),
  25. require('postcss-flexibility'),
  26. require('postcss-nested-props'),
  27. ],
  28. },
  29. },
  30. ],
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement