about summary refs log tree commit diff
path: root/config/webpack/loaders/sass.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack/loaders/sass.js')
-rw-r--r--config/webpack/loaders/sass.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/config/webpack/loaders/sass.js b/config/webpack/loaders/sass.js
index 920d5350f..5a96096bd 100644
--- a/config/webpack/loaders/sass.js
+++ b/config/webpack/loaders/sass.js
@@ -1,16 +1,10 @@
 const MiniCssExtractPlugin = require('mini-css-extract-plugin');
-const { env } = require('../configuration.js');
 
 module.exports = {
   test: /\.s?css$/i,
   use: [
     MiniCssExtractPlugin.loader,
-    {
-      loader: 'css-loader',
-      options: {
-        minimize: env.NODE_ENV === 'production',
-      },
-    },
+    'css-loader',
     {
       loader: 'postcss-loader',
       options: {
@@ -21,6 +15,9 @@ module.exports = {
       loader: 'sass-loader',
       options: {
         includePaths: ['app/javascript'],
+        fiber: require('fibers'),
+        implementation: require('sass'),
+        sourceMap: true,
       },
     },
   ],