Created
December 4, 2019 10:13
-
-
Save maxichrome/44f74321cc9b148abe54759c1977d387 to your computer and use it in GitHub Desktop.
This file contains 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
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