forked from uchikoshi-fes/uchikoshi-fes.jp-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
30 lines (25 loc) · 823 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* © 2022 uchikoshi-fes
* This file is licensed under the MIT License, see /LICENSE file.
*/
const withPlugins = require("next-compose-plugins");
/** @type {import("next").NextConfig} */
const nextConfig = {
reactStrictMode: true,
};
const plugins = [];
plugins.push([
require("next-optimized-images"),
{
handleImages: ["jpeg", "png", "svg", "webp", "gif", "ico"],
imagesName: "[name].[ext]?hash=[hash]", // defailt: [name]-[hash].[ext]
removeOriginalExtension: true, // example: test.png.webp -> test.webp
responsive: {
name: "[name]-w[width].[ext]?hash=[hash]", // default: [hash]-[width].[ext]
sizes: [80, 160, 320, 640, 1280, 2560],
adapter: require("responsive-loader/sharp"),
emitFile: false,
},
},
]);
module.exports = withPlugins(plugins, nextConfig);