-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnext.config.js
44 lines (40 loc) · 1.01 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
41
42
43
44
// @js-ignore
/* eslint-disable no-undef */
const path = require('path')
const withSass = require('@zeit/next-sass')
const plugins = require('next-compose-plugins')
const images = require('next-images')
const videos = require('next-videos')
const fonts = require('next-fonts')
const reactSvg = require('next-react-svg')
const withTM = require('next-transpile-modules')([
'@react-three/drei',
'three',
'react-spring',
'postprocessing',
'react-postprocessing',
])
const nextConfig = {
target: 'serverless',
webpack: (config) => {
return config
},
}
module.exports = plugins(
[
withSass({
cssModules: false,
// this is for css code spliting (scope restricted to file)
// cssLoaderOptions: {
// importLoaders: 1,
// localIdentName: '[local]___[hash:base64:5]',
// },
}),
[images, { exclude: path.resolve(__dirname, 'src/assets/svg') }],
[reactSvg, { include: path.resolve(__dirname, 'src/assets/svg') }],
fonts,
videos,
withTM,
],
nextConfig
)