summaryrefslogtreecommitdiff
path: root/config/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index da2a19838e4..5cba995888a 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -58,7 +58,7 @@ var config = {
{
test: /\.(js|es6)$/,
loader: 'imports-loader',
- query: 'this=>window'
+ query: '$=jquery,jQuery=jquery,this=>window'
},
{
test: /\.json$/,
@@ -87,7 +87,10 @@ var config = {
'vendor': path.join(ROOT_PATH, 'vendor/assets/javascripts'),
'vue$': 'vue/dist/vue.js',
'vue-resource$': 'vue-resource/dist/vue-resource.js'
- }
+ },
+ root: [
+ path.join(ROOT_PATH, 'app/assets/javascripts'),
+ ],
}
}