move docs to own folder
This commit is contained in:
51
docs/gridsome.config.js
Normal file
51
docs/gridsome.config.js
Normal file
@@ -0,0 +1,51 @@
|
||||
const path = require('path')
|
||||
|
||||
function addStyleResource(rule) {
|
||||
rule.use('style-resource')
|
||||
.loader('style-resources-loader')
|
||||
.options({
|
||||
patterns: [
|
||||
path.resolve(__dirname, './src/variables.scss'),
|
||||
],
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
siteName: 'TipTap',
|
||||
port: 3000,
|
||||
plugins: [
|
||||
{
|
||||
use: '@gridsome/vue-remark',
|
||||
options: {
|
||||
typeName: 'Post',
|
||||
baseDir: './content/posts',
|
||||
route: '/posts/:slug',
|
||||
template: './src/templates/Post.vue',
|
||||
plugins: [
|
||||
'@gridsome/remark-prismjs',
|
||||
[
|
||||
'@noxify/gridsome-plugin-remark-embed',
|
||||
{
|
||||
'enabledProviders' : ['Youtube', 'Twitter', 'Gist'],
|
||||
},
|
||||
],
|
||||
],
|
||||
}
|
||||
},
|
||||
// {
|
||||
// use: '@gridsome/source-filesystem',
|
||||
// options: {
|
||||
// path: './people/**/*.json',
|
||||
// typeName: 'People',
|
||||
// }
|
||||
// },
|
||||
],
|
||||
chainWebpack(config) {
|
||||
// Load variables for all vue-files
|
||||
const types = ['vue-modules', 'vue', 'normal-modules', 'normal']
|
||||
|
||||
types.forEach(type => {
|
||||
addStyleResource(config.module.rule('scss').oneOf(type))
|
||||
})
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user