mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(server): delete all non-js assets
This commit is contained in:
parent
4b643b9528
commit
6589670864
@ -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]
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user