cea.ac.in icon indicating copy to clipboard operation
cea.ac.in copied to clipboard

Utilize baseURL to allow for easy local development and alternative gh-pages

Open Oatelaus opened this issue 5 years ago • 8 comments

Currently there exists an issue where certain resources are required in from static locations or links to pages only work in certain environments.

Currently I notice HTMLWebpackPlugin's publicPath is being used, it would be best to use baseURL as this would accomodate the issue which github pages poses to relative links.

This change would require the removal of the html-loader, but I believe this is currently not in use anyway.

This would allow setting baseURL based on options.mode in the webpack config. In localhost, this can be set to localhost:8080 and all relative links will point towards that, whereas github pages would allow for https://ceadoor.github.io/cea.ac.in/ and this would allow us to drop links such as /cea.ac.in/about to /about.

Oatelaus avatar Oct 10 '18 08:10 Oatelaus