Nuxt/examples/with-coffee/nuxt.config.js
2018-01-05 08:20:32 +01:00

34 lines
717 B
JavaScript

module.exports = {
/*
** Headers of the page
*/
head: {
title: 'with-coffee',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
/*
** Customize the progress bar color
*/
loading: { color: '#3B8070' },
/*
** Build configuration
*/
extensions: ['coffee'],
build: {
extend (config, ctx) {
config.resolve.extensions.push('.ts')
config.module.rules.push({
test: /\.coffee$/,
loader: 'coffee-loader'
})
}
}
}