disable the Vue production warning in development and testing

This commit is contained in:
Mike Greiling 2017-03-15 21:56:48 -05:00
parent d023e92fb6
commit 6a3980ef4d
2 changed files with 9 additions and 1 deletions

View File

@ -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;
}

View File

@ -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',