forked from codeforpublic/multipoint-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
43 lines (35 loc) · 904 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
31
32
33
34
35
36
37
38
39
40
41
42
43
const dotenvLoad = require('dotenv-load')
const nextEnv = require('next-env')
const path = require('path')
const withCSS = require('@zeit/next-css')
dotenvLoad()
const withNextEnv = nextEnv()
module.exports = withNextEnv(
{
webpack: config => {
config.plugins = config.plugins || []
config.resolve.modules.push(path.resolve('./src'))
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: '@svgr/webpack',
options: { svgoConfig: { plugins: [{ removeViewBox: false }] } }
}
]
})
config.module.rules.push({
test: /\.(eot|woff|woff2|ttf|svg|png|jpg|gif)$/,
use: {
loader: 'url-loader',
options: {
limit: 100000,
name: '[name].[ext]'
}
}
})
return config
}
},
withCSS({ cssModules: false })
)