12345678910111213141516171819202122232425 |
- const prodPlugin = []
- if (process.env.NODE_ENV === 'production') {
-
- prodPlugin.push([
- 'transform-remove-console',
- {
-
- exclude: ['error', 'warn']
- }
- ])
- }
- module.exports = {
- presets: ["@vue/cli-plugin-babel/preset"],
- plugins: [
- [
- "import",
- {
- libraryName: "vant",
- libraryDirectory: "es",
- style: true
- }
- ],...prodPlugin
- ]
- };
|