Closed sinchang closed 7 years ago
use:
const EslintPlugin = require('webpack-eslint-plugin') and config.plugins.push(new EslintPlugin({ format: require('eslint-friendly-formatter'), include: ['src/**/*.vue', '**/*.js'] }))
error:
TypeError: EslintPlugin is not a constructor
解决办法:
const EslintPlugin = require('webpack-eslint-plugin').default
use:
error: