mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 04:57:40 +08:00
ssr server plugin: only include js source maps
This commit is contained in:
parent
4f9f28cf16
commit
3a621d1860
@ -38,7 +38,7 @@ export default class VueSSRServerPlugin {
|
||||
stats.assets.forEach(asset => {
|
||||
if (asset.name.match(/\.js$/)) {
|
||||
bundle.files[asset.name] = compilation.assets[asset.name].source()
|
||||
} else if (asset.name.match(/\.map$/)) {
|
||||
} else if (asset.name.match(/\.js\.map$/)) {
|
||||
bundle.maps[asset.name.replace(/\.map$/, '')] = JSON.parse(compilation.assets[asset.name].source())
|
||||
}
|
||||
// do not emit anything else for server
|
||||
|
Loading…
Reference in New Issue
Block a user