mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
parent
963b4ddd0f
commit
165c80d94b
@ -43,7 +43,7 @@ export default class VueSSRServerPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stats.assets.forEach((asset) => {
|
stats.assets.forEach((asset) => {
|
||||||
if (asset.name.match(/\.js$/)) {
|
if (isJS(asset.name)) {
|
||||||
bundle.files[asset.name] = compilation.assets[asset.name].source()
|
bundle.files[asset.name] = compilation.assets[asset.name].source()
|
||||||
} else if (asset.name.match(/\.js\.map$/)) {
|
} else if (asset.name.match(/\.js\.map$/)) {
|
||||||
bundle.maps[asset.name.replace(/\.map$/, '')] = JSON.parse(compilation.assets[asset.name].source())
|
bundle.maps[asset.name.replace(/\.map$/, '')] = JSON.parse(compilation.assets[asset.name].source())
|
||||||
|
Loading…
Reference in New Issue
Block a user