Add .coffee extensions for nuxt and webpack

This commit is contained in:
Sébastien Chopin 2018-01-05 08:20:32 +01:00 committed by GitHub
parent 202a84f203
commit f74457c9c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -20,8 +20,10 @@ module.exports = {
/* /*
** Build configuration ** Build configuration
*/ */
extensions: ['coffee'],
build: { build: {
extend (config, ctx) { extend (config, ctx) {
config.resolve.extensions.push('.ts')
config.module.rules.push({ config.module.rules.push({
test: /\.coffee$/, test: /\.coffee$/,
loader: 'coffee-loader' loader: 'coffee-loader'