forked from vConsole
webpack.conf.js
文件配置里增加以下插件配置即可
// 引入插件
var vConsolePlugin = require('vconsole-webpack-plugin');
module.exports = {
...
plugins: [
new vConsolePlugin({
filter: [],
enable: true, // 编译时是否开启
runtimeEnable: 'runtimeVar' | Function | Boolean // 运行时是否开启
}),
...
]
...
}