minimal working
This commit is contained in:
1 parent
2093433b96
commit
13ea8c80da
11 files changed
+727
-337
No files matched your search
+55
-3
@@ -1,6 +1,8 @@
|
||||
import { NuxtConfig } from '@nuxt/types'
|
||||
|
||||
export default async (): Promise<NuxtConfig> => {
|
||||
const NODE_ENV = process.env['NODE_ENV'] || ''
|
||||
|
||||
return {
|
||||
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
|
||||
ssr: false,
|
||||
@@ -10,11 +12,15 @@ export default async (): Promise<NuxtConfig> => {
|
||||
|
||||
// Global page headers: https://go.nuxtjs.dev/config-head
|
||||
head: {
|
||||
title: 'jaquiz',
|
||||
title: 'WaniKani-based jaquiz',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ hid: 'description', name: 'description', content: '' },
|
||||
{
|
||||
hid: 'description',
|
||||
name: 'description',
|
||||
content: 'WaniKani-based jaquiz',
|
||||
},
|
||||
{ name: 'format-detection', content: 'telephone=no' },
|
||||
],
|
||||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
||||
@@ -24,7 +30,7 @@ export default async (): Promise<NuxtConfig> => {
|
||||
css: [],
|
||||
|
||||
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
||||
plugins: [],
|
||||
plugins: ['~/plugins/filter.ts', '~/plugins/vue-context.client.js'],
|
||||
|
||||
// Auto import components: https://go.nuxtjs.dev/config-components
|
||||
components: true,
|
||||
@@ -33,6 +39,7 @@ export default async (): Promise<NuxtConfig> => {
|
||||
buildModules: [
|
||||
// https://go.nuxtjs.dev/typescript
|
||||
'@nuxt/typescript-build',
|
||||
'nuxt-typed-vuex',
|
||||
],
|
||||
|
||||
// Modules: https://go.nuxtjs.dev/config-modules
|
||||
@@ -41,6 +48,43 @@ export default async (): Promise<NuxtConfig> => {
|
||||
'nuxt-buefy',
|
||||
// https://go.nuxtjs.dev/pwa
|
||||
'@nuxtjs/pwa',
|
||||
'@nuxtjs/proxy',
|
||||
[
|
||||
'@nuxtjs/fontawesome',
|
||||
{
|
||||
component: 'fontawesome',
|
||||
icons: {
|
||||
brands: ['faGithub'],
|
||||
solid: [
|
||||
'faAngleLeft',
|
||||
'faAngleRight',
|
||||
'faAngleUp',
|
||||
'faArrowUp',
|
||||
'faBookReader',
|
||||
'faCaretDown',
|
||||
'faCaretUp',
|
||||
'faChalkboardTeacher',
|
||||
'faCog',
|
||||
'faExclamationCircle',
|
||||
'faExclamationTriangle',
|
||||
'faEye',
|
||||
'faEyeSlash',
|
||||
'faInfoCircle',
|
||||
'faRandom',
|
||||
'faSearch',
|
||||
'faTag',
|
||||
'faListUl',
|
||||
'faListOl',
|
||||
'faBars',
|
||||
'faSave',
|
||||
'faTrash',
|
||||
'faTools',
|
||||
'faTh',
|
||||
'faRedoAlt',
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
// PWA module configuration: https://go.nuxtjs.dev/pwa
|
||||
@@ -50,6 +94,14 @@ export default async (): Promise<NuxtConfig> => {
|
||||
},
|
||||
},
|
||||
|
||||
proxy: {
|
||||
'/api': 'http://localhost:35594',
|
||||
},
|
||||
|
||||
env: {
|
||||
NODE_ENV,
|
||||
},
|
||||
|
||||
// Build Configuration: https://go.nuxtjs.dev/config-build
|
||||
build: {},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user