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.

15 lines
517 B

  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. { loader: 'sass-loader', options: { includePaths: ['app/javascript'] } },
  12. ],
  13. }),
  14. };