Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it work with vue-play #335

Merged
merged 5 commits into from
Feb 5, 2017
Merged

Make it work with vue-play #335

merged 5 commits into from
Feb 5, 2017

Conversation

egoist
Copy link
Collaborator

@egoist egoist commented Feb 5, 2017

To make it work with vue-play, we need to change the webpack config in config.js to something like:

module.exports = {
  entry: {
    app: './play/app.js',
    preview: './play/preview.js'
  },
  // add hmr client to these entries
  hmrEntries: ['app', 'preview'],
  // produce html files for these entries
  html: [
    {title: 'Vue-Play Panel', chunks: ['app']},
    {title: 'Vue-Play Preview', chunks: ['preview'], filename: 'preview.html'}
  ]
}

And this PR allows:

  • options.entry to be undefined if using --config
  • options.html can be an array
  • use options.hmrEntries to add hmr client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant