-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add support for assets on both dev + default servers #1785
Comments
With acorn v3, as of right now: export default async bud => {
bud
.extensions.remove(`@roots/sage/acorn`)
.setPublicPath(`/app/themes/roots/public/`)
// ....
}) preliminary testing indicates that this works for |
This should be fixed in v6.6.0. There is no good way for bud.js to be sniff out the acorn version in use so you will need to opt-in: bud.sage.setAcornVersion('v3') |
OK, as of 6.6.8 you no longer need to call |
Started on a new site today and this is all working perfectly! 🎉 just wanted to say thanks |
Hey folks 👋 this is a follow-up on the discord chat + discourse forum thread to track progress in one place. Appears this will take some time to resolve as it depends on Acorn v3+ release as potentially includes breaking changes.
Issue: when running the dev server, local assets (specifically dynamic imports) on the host domain do not load + errors are logged to the console
Running
yarn dev
localhost:3000
✅ assets load perfectlyexample.test
❌ assets fail to load (ideally would like this to still serve assets even if they're not 'live reloaded')Running
yarn build
example.test
✅ assets load perfectlyThe text was updated successfully, but these errors were encountered: