diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-03-16 05:56:48 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-03-22 04:20:01 +0300 |
commit | 6a3980ef4df7a159f5899bef86084bd931acc76d (patch) | |
tree | 492b3227438425c00e0b98447b47d3a514de0ad9 | |
parent | d023e92fb6dcda269f94a3b87b63174970df08ad (diff) |
disable the Vue production warning in development and testing
-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', |