Commit 71457d42 authored by 李苏's avatar 李苏 💬

生产模式调整

parent 8ad32a7d
const clearArrow = require('./tools/babel-clearArrow.js'); const clearArrow = require('./tools/babel-clearArrow.js');
const tryCatchAuto = require('common/src/babelPlugin/tryCatchAuto.js'); const tryCatchAuto = require('common/src/babelPlugin/tryCatchAuto.js');
const proPlugins = ['dynamic-import-node', [tryCatchAuto]]; const proPlugins = ['dynamic-import-node', [tryCatchAuto]];
// if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
// proPlugins.push('transform-remove-console'); proPlugins.push('transform-remove-console');
// proPlugins.push('transform-remove-debugger'); proPlugins.push('transform-remove-debugger');
// } }
module.exports = { module.exports = {
presets: [ presets: [
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment