根据回答,我试了一下将dom7这个modules也加入到webpack的babel-loader:
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'),resolve('node_modules/_dom7@2.0.0@dom7/src')]
},
接下来显示的却是:
感觉这样子下去要没完没了了。
然后我再:
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'),resolve('node_modules/_dom7@2.0.0@dom7/src'),resolve('node_modules/_swiper@4.0.0-beta.4@swiper')]
},
最后
> node build/build.js
⠴ building for production...Killed
这是什么情况?如果我想引入这个插件我应该如何配置这个webpack?
守候你守候我
相关分类