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.

30 lines
607 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. localIdentName: '[name]__[local]___[hash:base64:5]',
  12. },
  13. },
  14. {
  15. loader: 'postcss-loader',
  16. options: {
  17. sourceMap: true,
  18. },
  19. },
  20. {
  21. loader: 'sass-loader',
  22. options: {
  23. includePaths: ['app/javascript'],
  24. implementation: require('sass'),
  25. sourceMap: true,
  26. },
  27. },
  28. ],
  29. };