This PR fixes a long-standing issue in which non-production versions of Candela were being published to NPM. This adds a build:prod script to each package's package.json file which simply invokes Webpack in production mode. This has two major benefits:
Drastically reduced bundle sizes. For instance, the candela-all package goes from 11MB to 2MB
Better performance. This is due to the fact that the development bundles contain code wrapped in calls to eval() in order to enable source maps etc.
This needed to be fixed in any case, but I am doing it now in order to fix a bug in the testing process for Girder's Candela plugin.
This PR fixes a long-standing issue in which non-production versions of Candela were being published to NPM. This adds a
build:prod
script to each package'spackage.json
file which simply invokes Webpack in production mode. This has two major benefits:eval()
in order to enable source maps etc.This needed to be fixed in any case, but I am doing it now in order to fix a bug in the testing process for Girder's Candela plugin.