Skip to content

Commit

Permalink
ssr server plugin: only include js source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 23, 2017
1 parent 4f9f28c commit 3a621d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/webpack-plugin/server.js
Expand Up @@ -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
Expand Down

0 comments on commit 3a621d1

Please sign in to comment.