1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
mc.langrock.info/gridsome.config.js
Ville Säävuori 58825d595d Initial commit
2020-01-27 02:10:25 +02:00

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