diff options
author | Surinna Curtis <ekiru.0@gmail.com> | 2017-07-17 22:06:31 -0500 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-18 11:27:48 -0700 |
commit | 7a77f7b3bbafff6b8c9899e1c4404ab5e5cde853 (patch) | |
tree | 03ca53188da35fa5ef39f54410bdc3ee029693d4 /config/webpack | |
parent | df74e26baf3c639d0419a7b809208636e81d93f3 (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.js | 1 | ||||
-rw-r--r-- | config/webpack/loaders/sass.js | 2 |
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'] } }, ], }), }; |