about summary refs log tree commit diff
path: root/config/webpack/loaders
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack/loaders')
-rw-r--r--config/webpack/loaders/babel.js1
-rw-r--r--config/webpack/loaders/sass.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/webpack/loaders/babel.js b/config/webpack/loaders/babel.js
index 7509617fd..d8d785b98 100644
--- a/config/webpack/loaders/babel.js
+++ b/config/webpack/loaders/babel.js
@@ -7,6 +7,7 @@ module.exports = {
   exclude: /node_modules/,
   loader: 'babel-loader',
   options: {
+    sourceRoot: 'app/javascript',
     cacheDirectory: env === 'development' ? false : resolve(__dirname, '..', '..', '..', 'tmp', 'cache', 'babel-loader'),
   },
 };
diff --git a/config/webpack/loaders/sass.js b/config/webpack/loaders/sass.js
index 67a1890b8..5a96096bd 100644
--- a/config/webpack/loaders/sass.js
+++ b/config/webpack/loaders/sass.js
@@ -14,6 +14,7 @@ module.exports = {
     {
       loader: 'sass-loader',
       options: {
+        includePaths: ['app/javascript'],
         fiber: require('fibers'),
         implementation: require('sass'),
         sourceMap: true,