-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
65 lines (58 loc) · 1.42 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const withCSS = require('@zeit/next-css');
const withFonts = require('next-fonts');
// const withImages = require('next-images');
const withPlugins = require("next-compose-plugins");
const optimizedImages = require('next-optimized-images');
const sitemap = require('nextjs-sitemap-generator');
const withManifest = require('next-manifest');
const withOffline = require('next-offline');
//const withPurgeCss = require('next-purgecss')
// Setup these before going anywehre
const SITE_NAME = '';
const SITE_URL = '';
sitemap({
baseUrl: SITE_URL,
pagesDirectory: __dirname + "/pages",
targetDirectory : 'public/' ,
ignoredExtensions: [
'png',
'jpg'
]
});
const manifest = {
output: './public/',
short_name: '',
name: SITE_NAME,
description: '',
dir: 'ltr',
lang: 'en',
icons: [
{
src: 'favicon.ico',
sizes: '32x32 48x48 96x96 128x128 144x144 192x192 256x256',
type: 'image/x-icon',
},
],
start_url: '/',
display: 'standalone',
theme_color: '#4285F4',
background_color: '#ffffff',
};
//withImages ,
module.exports = withPlugins([
[withManifest({ manifest })],
[withOffline, { dontAutoRegisterSw: false }],
withCSS ,
withFonts,
// withImages,
[optimizedImages,{
// inlineImageLimit :-1,
handleImages: ['jpg','jpeg', 'png', 'svg', 'webp', 'gif' ,'ico']
}]
], {
exportPathMap: function() {
return {
'/': { page: '/' },
};
}
});