46 lines
1.3 KiB
JavaScript
46 lines
1.3 KiB
JavaScript
// 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: 'Tulip',
|
|
// 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.png',
|
|
plugins,
|
|
}
|
|
// All configuration options: https://gridsome.org/docs/config
|