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.

23 lines
438 B

  1. const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  2. module.exports = {
  3. test: /\.s?css$/i,
  4. use: [
  5. MiniCssExtractPlugin.loader,
  6. 'css-loader',
  7. {
  8. loader: 'postcss-loader',
  9. options: {
  10. sourceMap: true,
  11. },
  12. },
  13. {
  14. loader: 'sass-loader',
  15. options: {
  16. fiber: require('fibers'),
  17. implementation: require('sass'),
  18. sourceMap: true,
  19. },
  20. },
  21. ],
  22. };