Skip to content

Commit

Permalink
fix(ssr): check js assets more accurate in ssr webpack plugin (#8639)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and yyx990803 committed Nov 30, 2018
1 parent 4ecc21c commit 5624278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/webpack-plugin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class VueSSRServerPlugin {
}

stats.assets.forEach(asset => {
if (asset.name.match(/\.js$/)) {
if (isJS(asset.name)) {
bundle.files[asset.name] = compilation.assets[asset.name].source()
} else if (asset.name.match(/\.js\.map$/)) {
bundle.maps[asset.name.replace(/\.map$/, '')] = JSON.parse(compilation.assets[asset.name].source())
Expand Down

0 comments on commit 5624278

Please sign in to comment.