A plugin for snowpack which transforms the baseurl to make it possible to host the app on a sub path.
npm install snowpack-plugin-baseurl-handlerEx:
```
https://www.mydomain.com/site-a
https://www.mydomain.com/site-b
as a prefix to every urls that is pointing towards the applications public folder. Ex.#### index.html
`html
`#### js
`js
const MyImage = () => 
`Note: It is not recommended to use this plugin at the same time of usage of baseUrl configuration within the snowpack configuration.
Configure
#### snowpack.config.js
`js
module.exports = {
plugins: [
["snowpack-plugin-baseurl-handler", {
exts: [".html", ".js", ".jsx", ".css"], // Add those file extensions you want to be affected by this plugin
baseUrl: '/my-custom-base-url', // Path where the snowpack app is located within the web server
debug: true, // Debug output during build process. Default: false.
}],
],
}
`Note: The plugin will override baseurl configuration with the value
'' when running in dev` mode