rsnext/packages/next/build
Alex Castle 1b733423d6
Use Sharp if available for Image Optimization (#27346)
* Use sharp for image transformations when available

* Refactor resizeImage and add sharp warning

* only show sharp warning once per instance

* Modify sharp error message

* Add documentation for optional sharp dependency

* Update docs/basic-features/image-optimization.md

Co-authored-by: Steven <steven@ceriously.com>

* Import types for sharp

* Update lockfile

* Add testing against sharp

* use fs-extra for node 12

* Rename test sharp path variable

* Apply suggestions from code review

Co-authored-by: Steven <steven@ceriously.com>

* update squoosh specific test

* Apply suggestions from code review

Co-authored-by: Steven <steven@ceriously.com>

* update tests

* Apply suggestions from code review

Co-authored-by: Steven <steven@ceriously.com>

Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2021-07-22 18:11:17 -05:00
..
babel Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
output Upgrade eslint to the latest version (#24377) 2021-04-25 18:34:36 +00:00
polyfills Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
profiler Added no-shadow rule to eslint (#13645) 2020-06-01 21:00:22 +00:00
webpack Use Sharp if available for Image Optimization (#27346) 2021-07-22 18:11:17 -05:00
compiler.ts Update to latest TypeScript version and de-dupe versions (#26285) 2021-06-17 17:43:25 -05:00
entries.ts Add some missing fields to the NextConfig type (#27126) 2021-07-12 21:38:57 +00:00
generate-build-id.ts Update err.sh links to use nextjs.org/docs/messages instead (#23353) 2021-03-29 10:25:00 +02:00
index.ts improve static generation UX (#27171) 2021-07-16 09:21:44 +00:00
is-writeable.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
spinner.ts [Feature] Progress bar for static build (#15297) 2020-08-04 09:58:23 +02:00
utils.ts improve static generation UX (#27171) 2021-07-16 09:21:44 +00:00
webpack-config.ts Add some missing fields to the NextConfig type (#27126) 2021-07-12 21:38:57 +00:00
write-build-id.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00