不确定这是Bug还是我应该设置的东西..但是我只是安装并设置了我的配置webpack,却得到了一个空键
配置
webpack.base.conf.js
entry: {
app: ['./src/main.js'],
},
.........
plugins: [
new AssetsPlugin({
filename: 'manifest.json',
path: resolve('src/assets'),
includeAllFileTypes: false,
fileTypes: ['js', 'jpg', 'woff', 'woff2', 'otf'],
manifestFirst: true,
prettyPrint: true,
})
输出
manifest.json
{
"app": {
"js": "/app.js"
},
"": {
"jpg": [
"/static/img/24_tablet.1142952.jpg",
"/static/img/10_desktop.0a66f1a.jpg",
"/static/img/10_mobile.e16be9f.jpg"
],
}
}
版本
package.json
"dependencies": {
"assets-webpack-plugin": "^3.9.7",
"webpack": "^3.6.0",
"vue": "^2.5.2",
}