You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
597 B

  1. const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  2. module.exports = {
  3. test: /\.s?css$/i,
  4. use: [
  5. MiniCssExtractPlugin.loader,
  6. {
  7. loader: 'css-loader',
  8. options: {
  9. sourceMap: true,
  10. importLoaders: 2,
  11. modules: {
  12. localIdentName: '[name]__[local]___[hash:base64:5]',
  13. },
  14. },
  15. },
  16. {
  17. loader: 'postcss-loader',
  18. options: {
  19. sourceMap: true,
  20. },
  21. },
  22. {
  23. loader: 'sass-loader',
  24. options: {
  25. implementation: require('sass'),
  26. sourceMap: true,
  27. },
  28. },
  29. ],
  30. };