full running

This commit is contained in:
polv committed 2020-12-16 09:29:57 +07:00
1 parent 3daa9f82e7
commit 4fb41de0f1
8 files changed
+139 -8

No files matched your search

+11 -2
View File
@@ -1,5 +1,4 @@
import { NuxtConfig } from '@nuxt/types'
import { getTheme } from './server/theme'
const config = async (): Promise<NuxtConfig> => {
@@ -29,6 +28,16 @@ const config = async (): Promise<NuxtConfig> => {
},
],
script: [
...(theme.analytics?.plausible
? [
{
src: 'https://plausible.io/js/plausible.js',
async: true,
defer: true,
'data-domain': theme.analytics?.plausible,
},
]
: []),
{
src:
'https://unpkg.com/@webcomponents/webcomponentsjs/webcomponents-loader.js',
@@ -45,7 +54,7 @@ const config = async (): Promise<NuxtConfig> => {
css: [],
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: ['~/plugins/format.ts'],
plugins: ['~/plugins/format.ts', '~/plugins/remark42.client.js'],
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,