Skip to content

Commit

Permalink
fix(ssr): change throw error to warn to fix hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorliu committed Aug 3, 2019
1 parent 529df3b commit 5c3684b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/webpack-plugin/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { validate, isJS, onEmit } from './util'
import { validate, isJS, onEmit, warn } from './util'

export default class VueSSRServerPlugin {
constructor (options = {}) {
Expand All @@ -23,7 +23,7 @@ export default class VueSSRServerPlugin {
const entryAssets = entryInfo.assets.filter(isJS)

if (entryAssets.length > 1) {
throw new Error(
warn(
`Server-side bundle should have one single entry file. ` +
`Avoid using CommonsChunkPlugin in the server config.`
)
Expand Down

0 comments on commit 5c3684b

Please sign in to comment.