about summary refs log tree commit diff
path: root/config/webpack/rules
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack/rules')
-rw-r--r--config/webpack/rules/babel.js1
-rw-r--r--config/webpack/rules/css.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/webpack/rules/babel.js b/config/webpack/rules/babel.js
index 2fc245c43..4d25748ee 100644
--- a/config/webpack/rules/babel.js
+++ b/config/webpack/rules/babel.js
@@ -12,6 +12,7 @@ module.exports = {
     {
       loader: 'babel-loader',
       options: {
+        sourceRoot: 'app/javascript',
         cacheDirectory: join(settings.cache_path, 'babel-loader'),
         cacheCompression: env.NODE_ENV === 'production',
         compact: env.NODE_ENV === 'production',
diff --git a/config/webpack/rules/css.js b/config/webpack/rules/css.js
index 27905a617..9553cb55b 100644
--- a/config/webpack/rules/css.js
+++ b/config/webpack/rules/css.js
@@ -21,6 +21,7 @@ module.exports = {
     {
       loader: 'sass-loader',
       options: {
+        includePaths: ['app/javascript'],
         fiber: require('fibers'),
         implementation: require('sass'),
         sourceMap: true,