-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgridsome.config.js
49 lines (44 loc) · 1.37 KB
/
gridsome.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
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
// Google analytics is enabled only if this OR environment variable by the same name is set
const GOOGLE_ANALYTICS_ID = undefined
// Configure plugins here
let plugins = [
{
use: 'gridsome-plugin-tailwindcss',
options: {
tailwindConfig: './tailwind.config.js',
/* These are the default options. You don't need to set any options to get going.
purgeConfig: {},
presetEnvConfig: {},
shouldPurge: true,
shouldImport: true,
shouldTimeTravel: true
*/
},
},
]
if (GOOGLE_ANALYTICS_ID || process.env.GOOGLE_ANALYTICS_ID) {
plugins.push({
use: '@gridsome/plugin-google-analytics',
options: {
id: GOOGLE_ANALYTICS_ID || process.env.GOOGLE_ANALYTICS_ID,
},
})
}
module.exports = {
siteName: 'Lockdown',
// Default titleTemplate is '%s - <siteName>'
// Overrided here to avoid having 'My Site Name - My Site Name' on homepage
titleTemplate: '%s',
// Default is './src/favicon.png'
icon: './src/assets/img/favicon-32x32.png',
plugins: [
{
use: 'gridsome-plugin-tailwindcss'
},
]
}
// All configuration options: https://gridsome.org/docs/config