Skip to content

Instantly share code, notes, and snippets.

@maxichrome
Created December 4, 2019 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxichrome/44f74321cc9b148abe54759c1977d387 to your computer and use it in GitHub Desktop.
Save maxichrome/44f74321cc9b148abe54759c1977d387 to your computer and use it in GitHub Desktop.
export default {
mode: 'universal',
head: {
titleTemplate: titleChunk => `${titleChunk ? `${titleChunk} | ` : ''}` + 'Site',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' },
{ property: 'og:title', content: 'Site (embed test!)' },
{ property: 'og:site_name', content: 'Site' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://use.typekit.net/project_id_omitted.css' }
]
},
loading: { color: '#fff' },
globalName: 'site',
globals: {
id: globalName => `__${globalName}-app`,
nuxt: globalName => `$${globalName}`,
context: globalName => `__NAPP__`,
pluginPrefix: globalName => globalName,
readyCallback: globalName => `onVAppReady`,
loadedCallback: globalName => `_onVAppLoaded`
},
css: [
'~assets/css/theme.css'
],
plugins: [
],
buildModules: [
'@nuxtjs/eslint-module',
'@nuxtjs/tailwindcss'
],
modules: [
'@nuxtjs/axios',
'@nuxtjs/pwa',
'nuxt-material-design-icons'
],
axios: {
},
build: {
extend(config, ctx) {
// Extend Webpack config here
},
postcss: {
plugins: {
'autoprefixer': {},
'postcss-nested': {}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment