Automatic publicPath is not supported in this browser

We think we might have a solution to get publicPath to play nice between acorn and bud.

In the meantime, you have two options:

  1. Probably best one. Set the publicPath specifically in the client using the EntryDescription object

Example:

bud.entry({
  app: {
    import: ['app.js']
    publicPath: '/app/themes/sage/public/'
  }
})
  1. Another option is to set __webpack_public_path__ at the top of your entrypoint. See the webpack docs for the concept:

If you want to set it up with DefinePlugin as documented you can utilize bud.define

1 Like