toastdotdev/toast

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

Opened this issue · 2 comments

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.

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

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