diff --git a/Step/wwwroot/src/main.js b/Step/wwwroot/src/main.js index 1ae69ea9..9d3d4988 100644 --- a/Step/wwwroot/src/main.js +++ b/Step/wwwroot/src/main.js @@ -16,6 +16,13 @@ const App = () => import { routes } from "./app.routes"; +try{ +if(PRODUCTION){ + Vue.config.devtools = false; // dsiabilita i messaggi di debug + Vue.config.performance = false; // disabilita i messaggi di tracing delle performance +}}catch(err){} + + Vue.use(VueRouter); Vue.use(VeeValidate); // forms validation for vuejs // Vue.use(VueGesture); diff --git a/Step/wwwroot/webpack.config.js b/Step/wwwroot/webpack.config.js index d3f30c43..4987871f 100644 --- a/Step/wwwroot/webpack.config.js +++ b/Step/wwwroot/webpack.config.js @@ -74,7 +74,8 @@ if (process.env.NODE_ENV === 'production') { new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '"production"' - } + }, + PRODUCTION: true }), new webpack.optimize.UglifyJsPlugin({ sourceMap: true,