在 webpack.base.conf.js 中配置
module.exports = {
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client'),resolve('node_modules/element-ui/packages/image/src/image-viewer')]
},
]
}
}
网友评论