File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ description: This page introduces how to change the behavior of this library.
8
8
Default behavior can be changed as needed.
9
9
Create ` export-images.config.js ` in the root.
10
10
11
- ``` js
11
+ ``` js title="export-images.config.js"
12
12
/**
13
13
* @type {import('next-export-optimize-images').Config}
14
14
*/
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ yarn add -D next-export-optimize-images
17
17
18
18
1 . Write withExportImages in ` next.config.js. `
19
19
20
- ``` js
21
- // next.config.js
20
+ ``` js title="next.config.js"
22
21
const withExportImages = require (' next-export-optimize-images' )
23
22
24
23
module .exports = withExportImages ({
@@ -28,8 +27,7 @@ module.exports = withExportImages({
28
27
29
28
If you are using ` next-compose-plugins `
30
29
31
- ``` js
32
- // next.config.js
30
+ ``` js title="next.config.js"
33
31
const withPlugins = require (' next-compose-plugins' )
34
32
const withExportImages = require (' next-export-optimize-images' )
35
33
@@ -46,7 +44,7 @@ module.exports = withPlugins(
46
44
47
45
2 . Change the description of the ` scripts ` that do the ` next export ` in ` package.json `
48
46
49
- ``` diff
47
+ ``` diff title="package.json"
50
48
{
51
49
- "export": "next build && next export",
52
50
+ "export": "next build && next export && next-export-optimize-images",
You can’t perform that action at this time.
0 commit comments