Skip to content

The proper way to include js libraries? #954

Open
@artshostak

Description

@artshostak

What is the right way to bring in 3rd-party libraries in the build for development and production? Obviously installing the packaged via npm/yarn into the 'node_modules' folder appears to be the first step, but what's the right way to include them? Referencing them in the 'gulpfile.babel.js' file (for main.min.js output) as well as the 'index.html' file (for main.js) seems like the right approach, but usually causes gulp to stutter and return ESLint errors. Can't find any documentation regarding this, would love to know what the accepted method is.

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