8000 Why main entry of package.json points to minified script? · Issue #703 · nervgh/angular-file-upload · GitHub
[go: up one dir, main page]

Skip to content
Why main entry of package.json points to minified script? #703
@albv

Description

@albv

It causes problems for our Webpack production build. Specifically after UglifyJsPlugin name mangling angular-file-upload.min.js script is broken. It's all works as expected with non-minified angular-file-upload.js file.
I think it's considered a best practice to set main entry of package.json to non-minified version of your code. So client bundler (webpack or anything else) could take care of concatenation and minification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0