FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]
https://www.snowpack.dev
Other
727 stars 96 forks source link

[webpack] Support non-SPA use-case #150

Closed FredKSchott closed 4 years ago

FredKSchott commented 4 years ago

See this discussion: https://www.pika.dev/npm/snowpack/discuss/381

Right now, we only bundle your main application entrypoint (the index.html file, or whatever was set as "devOptions.fallback").

let dom = new JSDOM(
  fs.readFileSync(path.join(srcDirectory, config.devOptions.fallback))
);

Instead we should scan every HTML file in your built application for entrypoints, and then use the full collection of found script tags to bundle your application.

FredKSchott commented 4 years ago

Duplicate of #144