Skip to content

Commit

Permalink
ci: bundlesize (#43)
Browse files Browse the repository at this point in the history
* fix(about): carousel item src-set to srcset

* ci: bundlesize

resolves #42

* ci(bundlesize): run after generate

* chore(bundlesize): exclude png and webp files

* fix(meta): add random og:image

* ci: bundlewatch

Co-authored-by: Damien Robinson <[email protected]>
  • Loading branch information
shadow81627 and damienrobinson authored Sep 7, 2020
1 parent 1054a52 commit cf4712a
Show file tree
Hide file tree
Showing 10 changed files with 206 additions and 138 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ script:
- npm run lint
# - npm run test
- npm run generate
- npm run bundlewatch
- npx semantic-release

deploy:
Expand Down
9 changes: 9 additions & 0 deletions bundlewatch.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"files": [
{
"path": "dist/**/*.*.!(jpg|png)",
"maxSize": "250 kB",
"compression": "gzip"
}
]
}
1 change: 1 addition & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default {
*/
plugins: [
// { src: 'plugins/theme', mode: 'client' }
{ src: 'plugins/og-image.js' },
],
/*
** Auto import components
Expand Down
275 changes: 153 additions & 122 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit cf4712a

@vercel
Copy link

@vercel vercel bot commented on cf4712a Sep 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.