48 lines
1.0 KiB
JavaScript
48 lines
1.0 KiB
JavaScript
export default {
|
|
srcDir: 'src',
|
|
target: 'static',
|
|
css: ['~/assets/scss/app.scss'],
|
|
modules: ['@nuxt/content', '@nuxtjs/style-resources'],
|
|
content: {
|
|
dir: '../content',
|
|
},
|
|
styleResources: {
|
|
scss: ['assets/scss/_variables.scss'],
|
|
},
|
|
head: {
|
|
htmlAttrs: {
|
|
lang: 'de',
|
|
},
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{
|
|
hid: 'author',
|
|
name: 'author',
|
|
content: 'Patrick Neff',
|
|
},
|
|
{
|
|
hid: 'language',
|
|
name: 'language',
|
|
content: process.env.language || 'de',
|
|
},
|
|
],
|
|
link: [],
|
|
},
|
|
build: {
|
|
extractCSS: true,
|
|
extend(config, ctx) {
|
|
// Run ESLint on save
|
|
if (ctx.isDev && ctx.isClient) {
|
|
config.module.rules.push({
|
|
enforce: 'pre',
|
|
test: /\.(js|vue)$/,
|
|
loader: 'eslint-loader',
|
|
exclude: /(node_modules|steampath)/,
|
|
});
|
|
}
|
|
},
|
|
},
|
|
plugins: ['~/plugins/dayjs'],
|
|
};
|