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
publicPath
specifically in the client using theEntryDescription
object
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