-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
37 lines (34 loc) · 1 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
// module.exports = {
// webpack(config) {
// console.log('config', config.module.rules[1].oneOf.unshift({
// test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
// loader: require.resolve('url-loader'),
// options: {
// limit: 10,
// name: 'static/media/[name].[hash:8].[ext]'
// }
// }));
// return config
// }
// }
const withPlugins = require('next-compose-plugins');
const css = require('@zeit/next-css')
const nextConfig = {
webpack: function (config) {
config.module.rules.push({
test: /\.(eot|woff|woff2|ttf|svg|png|jpg|gif)$/,
use: {
loader: 'url-loader',
options: {
limit: 100000,
// name: 'static/media/[name].[hash:8].[ext]'
name: '[name].[ext]'
}
}
})
return config
}
}
module.exports = withPlugins([
[css],
], nextConfig);