Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions bundlewatch.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const bundlewatchConfig = {
files: [
{
path: './dist/angular-cld/bundles/cloudinary-angular-5.x.umd.js',
maxSize: '30kb'
},
{
path: './dist/angular-cld/fesm5/cloudinary-angular-5.x.js',
maxSize: '25kb'
}
],
defaultCompression: 'gzip',
};

module.exports = bundlewatchConfig;
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"install-sample-from-source": "node ./scripts/install-sample-from-source.js samples/photo_album",
"install-sample-from-source:jquery": "node ./scripts/install-sample-from-source.js samples/photo_album_with_jquery",
"build": "ng build angular-cld && npm run copy-lib-assets",
"copy-lib-assets": "cp \"LICENSE\" \"CHANGELOG.md\" \"dist/angular-cld\""
"copy-lib-assets": "cp \"LICENSE\" \"CHANGELOG.md\" \"dist/angular-cld\"",
"bundlewatch": "bundlewatch --config bundlewatch.config.js"
},
"private": true,
"dependencies": {
Expand All @@ -34,6 +35,7 @@
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"bundlewatch": "^0.2.6",
"cloudinary-core": "^2.8.1",
"codelyzer": "~4.2.1",
"jasmine-core": "~2.99.1",
Expand Down