production environment
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user