antwarjs / antwar

A static site generator built with React and Webpack.
https://antwar.js.org/
MIT License
460 stars 35 forks source link

Generated paths (js, and interactives) are not using the "publicPath" webpack config #140

Open ChibiBlasphem opened 5 years ago

ChibiBlasphem commented 5 years ago

Like the title says, antwar is not using the public path to preprend the routes and assets files (js, and assets from interactives js)

Ex: My website is hosted on https://xxxxxxx.github.io/repo-name/

All assets are prefixed by "/" and not "/repo-name/" like my webpack config output publicPath has specifiedd

bebraw commented 5 years ago

Yeah, this is a limitation of the current implementation. We would have to fix it in the core.

You could try to set a base tag to control this. I might not have time to fix any time soon.