rsnext/packages/next/build/webpack
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
..
config Update NextConfig type to not require experimental or future fields (#25517) 2021-07-20 18:42:29 +00:00
loaders Use Sharp if available for Image Optimization (#27346) 2021-07-22 18:11:17 -05:00
plugins Provide Next.js postcss version to cssnano-simple (#26952) 2021-07-08 13:10:43 +02:00
require-hook.ts Ensure externals are correct for mini-css-extract-plugin (#25340) 2021-05-23 13:15:58 +02:00