toastdotdev / toast

The best place to stack your JAM. Toast is a Jamstack framework
153 stars 13 forks source link

Look for import-map.json in <output-dir>/web_modules instead of public/web_modules #40

Open mdarrik opened 3 years ago

mdarrik commented 3 years ago

toast incremental currently lets you specify a custom output dir besides public. However, the location of the input-map.json is hard coded to be public/web_modules/input-map.json.

At a minimum, it would be nice if it by default looked for the path output-dir/web_modules/input-map.json and allow a custom flag that can specify a totally different location.

ChristopherBiscardi commented 3 years ago

I get why <output-dir> is useful. What's the use case for the custom path to the import map though? Giving up control of where the import map is could make it harder to add support for bare imports when import maps work for real in the browser later

mdarrik commented 3 years ago

Mainly that (at least with the current implementation of breadbox), your input map doesn't have to be at outputdir/web_modules