webpack 引用vconsole
1.npm install -vconsole --save-dev 2.npm install -vconsele-webpack-plugin --save-dev 3.webpack.base.conf.js 'use strict' const path = require('path') const utils = require('./utils') const config = require('../config') const webpack = require('webpack') const vueLoaderConfig = require('./vue-loader.conf') const vConsolePlugin = require('vconsole-webpack-plugin'); // 引入vConstle function resolve(dir) { return path.join(__dirname, '..', dir) } process.env.NODE_ENV = 'production' // process.env.NODE_ENV = 'development' // new webpack.DefinePlugin({ // 'process.env.NODE_ENV': JSON.stringify(