css.js 504 B

12345678910111213141516171819202122232425262728
  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. },
  12. },
  13. {
  14. loader: 'postcss-loader',
  15. options: {
  16. sourceMap: true,
  17. },
  18. },
  19. {
  20. loader: 'sass-loader',
  21. options: {
  22. implementation: require('sass'),
  23. sourceMap: true,
  24. },
  25. },
  26. ],
  27. };