fix(server): delete all non-js assets

This commit is contained in:
Pooya Parsa 2018-12-01 14:29:26 +03:30
parent 4b643b9528
commit 6589670864

View File

@ -47,6 +47,9 @@ export default class VueSSRServerPlugin {
bundle.files[asset.name] = asset.name
} else if (asset.name.match(/\.js\.map$/)) {
bundle.maps[asset.name.replace(/\.map$/, '')] = asset.name
} else {
// Do not emit non-js assets for server
delete compilation.assets[asset.name]
}
})