Created
September 19, 2018 03:30
-
-
Save h-sakano/6d65c7768a0c5e1e3f29e20f272f1716 to your computer and use it in GitHub Desktop.
Firebase Authentication nuxt.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const parseArgs = require("minimist") | |
const argv = parseArgs(process.argv.slice(2), { | |
alias: { | |
H: "hostname", | |
p: "port" | |
}, | |
string: ["H"], | |
unknown: parameter => false | |
}) | |
const port = | |
argv.port || | |
process.env.PORT || | |
process.env.npm_package_config_nuxt_port || | |
"3000" | |
const host = | |
argv.hostname || | |
process.env.HOST || | |
process.env.npm_package_config_nuxt_host || | |
"localhost" | |
module.exports = { | |
env: { | |
baseUrl: | |
process.env.BASE_URL || | |
`http://${host}:${port}` | |
}, | |
head: { | |
title: "Ebay Templates", | |
meta: [ | |
{ charset: "utf-8" }, | |
{ | |
name: "viewport", | |
content: | |
"width=device-width, initial-scale=1" | |
}, | |
{ | |
hid: "description", | |
name: "description", | |
content: "Nuxt.js project" | |
} | |
], | |
script: [ | |
{ src: "materialize.min.js" } | |
], | |
link: [ | |
{ | |
rel: 'stylesheet', | |
href: "https://fonts.googleapis.com/icon?family=Material+Icons" | |
}, | |
{ | |
rel: "icon", | |
type: "image/x-icon", | |
href: "/favicon.ico" | |
} | |
] | |
}, | |
/* | |
** Customize the progress-bar color | |
*/ | |
loading: { color: "#3B8070" }, | |
/* | |
** Build configuration | |
*/ | |
css: [ | |
'~/assets/sass/materialize.scss', | |
"~/assets/css/main.css" | |
], | |
build: { | |
extend (config, { isDev, isClient }) { | |
if (isDev && isClient) { | |
config.module.rules.push({ | |
test: /\.ts$/, | |
enforce: 'pre', | |
loader: 'tslint-loader', | |
options: { | |
configFile: 'tslint.json', | |
tsConfigFile: 'tsconfig.json', | |
}, | |
}) | |
} | |
}, | |
}, | |
modules: [ | |
"@nuxtjs/axios", | |
"~/modules/typescript.js" | |
], | |
axios: {}, | |
plugins: [ | |
{ src: "~/plugins/auth.ts", ssr: false } | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment