We think we might have a solution to get publicPath to play nice between acorn and bud.
In the meantime, you have two options:
- Probably best one. Set the
publicPathspecifically in the client using theEntryDescriptionobject
Example:
bud.entry({
app: {
import: ['app.js']
publicPath: '/app/themes/sage/public/'
}
})
- 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