Web Components Manager
WCM gives you an incredible level of control over which dependencies are imported by your application, and at what versions.
Not every browser supports Service Workers in all cases, some restrict this feature in private tabs, some are just plain old. If you need to support these cases, WCM can run in legacy mode, allowing the browser to import your dependencies as if WCM wasn't there at all, but does require an extra build step when deploying.
You can install the CLI from NPM, it should be saved as a development dependency, but you could install it globally if required.
npm i wcm -D
To configure WCM in your project, you have a number of options thanks to the use of cosmiconfig internally. You can choose between any of the following.
wcmproperty in your projects
.wcmrcfile written in either JSON or YAML format
wcm.config.jsfile exporting a JS object
Running the following will install this projects dependencies, and build WCM for the first time.
After you've installed the projects dependencies, you can build this project by running the following command.
npm run prepare