-
Notifications
You must be signed in to change notification settings - Fork 15
Support relative assets in a different directory #26
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
Comments
Hey there! I think this should be possible by using esbuild's Something like this should do the trick:
Does this work for you? |
Thanks that works, although --serve seems to fail. Do you know if it's possible to support serve as we will need that for development. When i use --serve i get a blank white screen, when looking in dev tools the js file has the same contents at the html file. so there's syntax errors. Clicking ui-assets just refreshes the same directory listing. |
Looks like using serve is not possible right now, because of this bug. Is anything preventing you from using |
@craftamap I think I’ll need to use watch with browsersync. Thanks. |
So my previous webpack config would generate something which looked like this.
html-webpack-plugin
This was useful to us because we didn't want the main entry point (index.html) to be hashed. it also allowed us to serve static assets from a different place.
Is it possible to have the same result with this plugin?
The text was updated successfully, but these errors were encountered: