logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

sass.js (458B)


  1. const ExtractTextPlugin = require('extract-text-webpack-plugin');
  2. const { env } = require('../configuration.js');
  3. module.exports = {
  4. test: /\.(scss|sass|css)$/i,
  5. use: ExtractTextPlugin.extract({
  6. fallback: 'style-loader',
  7. use: [
  8. { loader: 'css-loader', options: { minimize: env.NODE_ENV === 'production' } },
  9. { loader: 'postcss-loader', options: { sourceMap: true } },
  10. 'resolve-url-loader',
  11. 'sass-loader',
  12. ],
  13. }),
  14. };