miracle/nuxt.config.js

89 lines
2.1 KiB
JavaScript
Raw Normal View History

2019-09-27 19:49:30 +00:00
module.exports = {
2019-09-27 19:52:22 +00:00
server: {
2019-09-27 19:56:51 +00:00
host: '0.0.0.0',
2019-10-04 19:48:41 +00:00
port: process.env.PORT || 14033
2019-09-27 19:52:22 +00:00
},
2019-09-27 19:49:30 +00:00
/*
** Headers of the page
*/
head: {
2019-11-29 20:26:07 +00:00
htmlAttrs: {
lang: 'en',
},
2020-11-09 11:16:34 +00:00
title: 'Damillora',
2019-09-27 19:49:30 +00:00
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
2020-11-09 11:16:34 +00:00
{ hid: 'description', name: 'description', content: 'Web developer, reviewer and content creator' },
2019-09-27 19:49:30 +00:00
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
2020-11-10 19:30:51 +00:00
{ rel: 'prefetch', href: 'https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap' },
2019-09-27 19:49:30 +00:00
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap' },
2020-11-10 19:30:51 +00:00
{ rel: 'prefetch', href: 'https://fonts.googleapis.com/css?family=M+PLUS+1p:300,400,500&display=swap' },
2019-09-27 19:49:30 +00:00
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=M+PLUS+1p:300,400,500&display=swap' },
2020-11-10 19:30:51 +00:00
{ rel: 'prefetch', href: 'https://fonts.googleapis.com/icon?family=Material+Icons' },
2020-06-23 21:56:09 +00:00
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons' },
2019-09-27 19:49:30 +00:00
],
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
],
2019-10-04 19:48:41 +00:00
env: {
subheader: process.env.SUBHEADER || "" ,
header: process.env.HEADER || "Sample Theming",
romaji: process.env.ROMAJI || "This demonstrates themable aspects",
},
2019-09-27 19:49:30 +00:00
/*
** Plugins to load before mounting the App
*/
plugins: [
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
],
/*
** Nuxt.js modules
*/
modules: [
['@nuxtjs/dotenv' ],
2019-09-27 19:49:30 +00:00
],
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
2020-06-23 21:37:09 +00:00
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
2019-09-27 19:49:30 +00:00
extend (config, ctx) {
2019-09-28 18:17:52 +00:00
config.module.rules.push({
test: /\.(ogg|mp3|wav|mpe?g)$/i,
loader: 'file-loader',
options: {
name: '[path][name].[ext]',
},
})
2019-09-27 19:49:30 +00:00
}
},
serverMiddleware: [
2019-10-04 20:00:48 +00:00
],
2020-02-01 20:26:13 +00:00
router: {
2020-11-09 11:16:34 +00:00
middleware: []
2020-02-01 20:26:13 +00:00
},
2019-09-27 19:49:30 +00:00
}