-
Notifications
You must be signed in to change notification settings - Fork 337
/
next.config.js
40 lines (38 loc) · 1.14 KB
/
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
31
32
33
34
35
36
37
38
39
40
const WindiCSSWebpackPlugin = require('windicss-webpack-plugin')
const path = require('path')
module.exports = {
output: 'export',
reactStrictMode: true,
// By default, Next.js doesn't create index.html files in directories.
// Instead, it creates an HTML file named after the directory, which also
// works fine in browsers.
//
// docs/
// ├── getting-started.html
// └── getting-started/
//
// We want to keep the old behavior, that originates from when we used Hugo.
// Relying on index.html makes it a bit easier to use tools such as htmltest.
// With the option "trailingSlash: true", we get the following layout:
//
// docs/
// └── getting-started/
// └── index.html
//
// More documentation can be found here:
// https://nextjs.org/docs/upgrading#next-export-no-longer-exports-pages-as-indexhtml
trailingSlash: true,
sassOptions: {
includePaths: [path.join(__dirname, 'styles')]
},
webpack: (config) => {
config.plugins.push(new WindiCSSWebpackPlugin())
return config
},
eslint: {
ignoreDuringBuilds: true
},
images: {
unoptimized: true
}
}