Skip to content

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

@kuncevic

Description

@kuncevic

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions