In my very old legacy project I want to make use of npm to update the JS-libraries automatically.
Using a package.json like:
{
"name": "whoCares",
"version": "0.0.1",
"license": "MIT",
"dependencies": {
"chosen-jquery": "0.1.1",
"ol": "6.9.0",
"toastr": "2.1.4"
}
}
I can fire the npm install to fill node_modules with stuff.
Now I need to create 2 bundle files for JS and CSS resources, by picking only the minified versions of the libraries with all possible dependencies included. I want only the production-relevant parts of libraries to be in, so all docs, examples, tests etc must be excluded.
Is there a simple way to achieve that out-of-box?