Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When there is no js code, 0 size js bundle should not be part of an output #341

Open
kuncevic opened this issue Dec 21, 2020 · 0 comments
Open

Comments

@kuncevic
Copy link

kuncevic commented Dec 21, 2020

If you have just html and css files in you project, you do not want to include js bundle in your code.

So say you do this:

  1. remove this line https://github.com/wbkd/webpack-starter/blob/main/src/scripts/index.js#L7
  2. run npm run build

In result you have 0 size js file generated and included in index.html

So I wonder is there a quick fix for that and should it be the intended behaviour of build script or an option to achieve that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant