awesome-mechanical-keyboard/gridsome.config.js

80 lines
2.0 KiB
JavaScript
Raw Normal View History

// 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`
module.exports = {
siteName: "Keebfol.io",
siteDescription: "Curated list of mechanical keyboard resources.",
siteUrl: "https://keebfol.io",
chainWebpack(config) {
config.mode("development");
const svgRule = config.module.rule("svg");
svgRule.uses.clear();
svgRule.use("vue-svg-loader").loader("vue-svg-loader");
},
plugins: [
{
use: "gridsome-plugin-tailwindcss",
2019-07-14 16:49:56 +03:00
options: {
tailwindConfig: "./tailwind.config.js",
presetEnvConfig: {},
shouldImport: false,
shouldTimeTravel: false,
},
},
{
use: "@gridsome/source-filesystem",
options: {
index: ["README"],
path: "**/*.md",
baseDir: "./docs",
typeName: "DocPage",
remark: {
autolinkHeadings: {
content: {
type: "text",
value: "#",
},
},
},
},
2019-07-19 20:09:28 +03:00
},
{
use: "gridsome-plugin-rss",
2019-07-19 20:09:28 +03:00
options: {
contentTypeName: "CommitMessages",
2019-07-19 20:09:28 +03:00
feedOptions: {
title: "Keebfol.io - A Mechanical Keyboard Wiki",
feed_url: "https://keebfol.io/rss.xml",
site_url: "https://keebfol.io",
2019-07-19 20:09:28 +03:00
},
feedItemOptions: (node) => ({
guid: node.id,
2019-07-19 20:09:28 +03:00
date: node.date,
title: node.message,
description: node.body,
author: node.author,
url: "https://keebfol.io/",
2019-07-19 20:09:28 +03:00
}),
output: {
dir: "./static/",
name: "rss.xml",
},
latest: true,
},
2019-09-14 20:21:06 +03:00
},
{
use: "gridsome-plugin-modal",
2019-09-14 23:53:07 +03:00
},
],
transformers: {
remark: {
externalLinksTarget: "_blank",
externalLinksRel: ["nofollow", "noopener", "noreferrer"],
anchorClassName: "icon icon-link",
},
},
};