闭社主体 forked from https://github.com/tootsuite/mastodon
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.

28 lines
504 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. },
  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. };