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

html doesn't update with multiple entries #301

Open
ninjasort opened this issue Dec 9, 2016 · 1 comment
Open

html doesn't update with multiple entries #301

ninjasort opened this issue Dec 9, 2016 · 1 comment

Comments

@ninjasort
Copy link

ninjasort commented Dec 9, 2016

const getConfig = require('hjs-webpack')

const config = getConfig({
  // entry point for the app
  in: 'src/index.js',
  out: 'public',
  html: true,
  devServer: {
    contentBase: __dirname + '/src'
  },
  clearBeforeBuild: true
})

config.entry = {
  // Add entries for vendors
  example: ['./example/example.js'],
  // Reassign previous single entry to main entry
  main: config.entry
}

module.exports = config

example.js doesn't load

@selbekk
Copy link
Collaborator

selbekk commented Apr 6, 2017

would example/example.js fix this for you? Notice the missing ./ in front.

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

No branches or pull requests

2 participants