about summary refs log tree commit diff
path: root/config/webpack
diff options
context:
space:
mode:
authorSurinna Curtis <ekiru.0@gmail.com>2017-07-17 22:06:31 -0500
committerkibigo! <marrus-sh@users.noreply.github.com>2017-07-18 11:27:48 -0700
commit7a77f7b3bbafff6b8c9899e1c4404ab5e5cde853 (patch)
tree03ca53188da35fa5ef39f54410bdc3ee029693d4 /config/webpack
parentdf74e26baf3c639d0419a7b809208636e81d93f3 (diff)
Add sourceRoot/includePaths to loaders
Use the settings modal as an example/testcase
Diffstat (limited to 'config/webpack')
-rw-r--r--config/webpack/loaders/babel.js1
-rw-r--r--config/webpack/loaders/sass.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/config/webpack/loaders/babel.js b/config/webpack/loaders/babel.js
index a1992a450..49b191d26 100644
--- a/config/webpack/loaders/babel.js
+++ b/config/webpack/loaders/babel.js
@@ -8,5 +8,6 @@ module.exports = {
   loader: 'babel-loader',
   options: {
     forceEnv: process.env.NODE_ENV || 'development',
+    sourceRoot: 'app/javascript',
   },
 };
diff --git a/config/webpack/loaders/sass.js b/config/webpack/loaders/sass.js
index 88d94c684..40e81b43b 100644
--- a/config/webpack/loaders/sass.js
+++ b/config/webpack/loaders/sass.js
@@ -9,7 +9,7 @@ module.exports = {
       { loader: 'css-loader', options: { minimize: env.NODE_ENV === 'production' } },
       { loader: 'postcss-loader', options: { sourceMap: true } },
       'resolve-url-loader',
-      'sass-loader',
+      { loader: 'sass-loader', options: { includePaths: ['app/javascript/styles'] } },
     ],
   }),
 };