diff options
-rw-r--r-- | app/assets/javascripts/commons/vue.js | 8 | ||||
-rw-r--r-- | config/webpack.config.js | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/app/assets/javascripts/commons/vue.js b/app/assets/javascripts/commons/vue.js new file mode 100644 index 00000000000..9e54c406d0a --- /dev/null +++ b/app/assets/javascripts/commons/vue.js @@ -0,0 +1,8 @@ +import Vue from 'vue'; +import VueResource from 'vue-resource'; + +Vue.use(VueResource); + +if (process.env.NODE_ENV !== 'production') { + Vue.config.productionTip = false; +} diff --git a/config/webpack.config.js b/config/webpack.config.js index c6794d6b944..ddc884cad0d 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -18,7 +18,7 @@ var config = { context: path.join(ROOT_PATH, 'app/assets/javascripts'), entry: { common: './commons/index.js', - common_vue: ['vue', 'vue-resource'], + common_vue: './commons/vue.js', common_d3: ['d3'], main: './main.js', blob_edit: './blob_edit/blob_edit_bundle.js', |