add blog
This commit is contained in:
1 parent
36338ed0d7
commit
7fe8f5d154
96 files changed
+21326
No files matched your search
@@ -0,0 +1,98 @@
|
||||
import { Configuration } from '@nuxt/types'
|
||||
|
||||
const config: Configuration = {
|
||||
mode: 'universal',
|
||||
/*
|
||||
** Headers of the page
|
||||
*/
|
||||
head: {
|
||||
title: '中文 Diary',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' },
|
||||
],
|
||||
link: [
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
||||
],
|
||||
script: [
|
||||
{ src: 'https://platform.twitter.com/widgets.js', async: true, charset: 'utf-8' },
|
||||
],
|
||||
},
|
||||
/*
|
||||
** Customize the progress-bar color
|
||||
*/
|
||||
loading: { color: '#fff' },
|
||||
/*
|
||||
** Global CSS
|
||||
*/
|
||||
css: [
|
||||
'@fortawesome/fontawesome-svg-core/styles.css',
|
||||
'~/assets/app.scss',
|
||||
],
|
||||
/*
|
||||
** Plugins to load before mounting the App
|
||||
*/
|
||||
plugins: [
|
||||
'~/plugins/disqus',
|
||||
'~/plugins/fontawesome',
|
||||
],
|
||||
/*
|
||||
** Nuxt.js dev-modules
|
||||
*/
|
||||
buildModules: [
|
||||
'@nuxt/typescript-build',
|
||||
],
|
||||
/*
|
||||
** Nuxt.js modules
|
||||
*/
|
||||
modules: [
|
||||
// Doc: https://buefy.github.io/#/documentation
|
||||
['nuxt-buefy', {
|
||||
materialDesignIcons: false,
|
||||
defaultIconPack: 'fa',
|
||||
defaultIconComponent: 'fa',
|
||||
}],
|
||||
['nuxt-mq', {
|
||||
defaultBreakpoint: 'desktop',
|
||||
breakpoints: {
|
||||
mobile: 500,
|
||||
tablet: 1024,
|
||||
desktop: Infinity,
|
||||
},
|
||||
}],
|
||||
// Doc: https://axios.nuxtjs.org/usage
|
||||
'@nuxtjs/axios',
|
||||
'nuxt-payload-extractor',
|
||||
['@nuxtjs/google-analytics', {
|
||||
id: 'UA-146246917-2',
|
||||
}],
|
||||
],
|
||||
/*
|
||||
** Axios module configuration
|
||||
** See https://axios.nuxtjs.org/options
|
||||
*/
|
||||
axios: {
|
||||
},
|
||||
/*
|
||||
** Build configuration
|
||||
*/
|
||||
build: {
|
||||
/*
|
||||
** You can extend webpack config here
|
||||
*/
|
||||
extend (config, ctx) {
|
||||
config.module?.rules!.push({
|
||||
test: /\.md$/,
|
||||
use: [
|
||||
'raw-loader',
|
||||
],
|
||||
})
|
||||
},
|
||||
},
|
||||
env: {
|
||||
title: '中文 Diary',
|
||||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in new issue
Block a user