Embed release version in built package
Rather than relying on the release version being passed in as config, build the current release version (as read from `package.json`) into the bundle. We use browserify-versionify for this, rather than simply requiring `package.json`, as our current build toolchain does not support any kind of tree-shaking, so `require('package.json')` would pull the whole of the `package.json` file into the bundle.
Showing
... | ... | @@ -21,6 +21,7 @@ |
"browserify": "^13.0.0", | ||
"browserify-ngannotate": "^1.0.1", | ||
"browserify-shim": "^3.8.12", | ||
"browserify-versionify": "^1.0.6", | ||
"chai": "^3.5.0", | ||
"check-dependencies": "^0.12.0", | ||
"classnames": "^2.2.4", | ||
... | ... | @@ -95,6 +96,7 @@ |
"transform": [ | ||
"browserify-ngannotate", | ||
"browserify-shim", | ||
"browserify-versionify", | ||
[ | ||
"stringify", | ||
{ | ||
... | ... |
Please register or sign in to comment