Skip to content

Commit

Permalink
fix: add coffee extension to build.additionalExtensions in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
devartyom committed Aug 19, 2019
1 parent 0cfe570 commit c1e8c0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/coffeescript/modules/coffeescript.js
@@ -1,6 +1,6 @@
export default function () {
// Add .coffee extension for store, middleware and more
this.nuxt.options.extensions.push('coffee')
this.nuxt.options.build.additionalExtensions.push('coffee')
// Extend build
const coffeeLoader = {
test: /\.coffee$/,
Expand Down
2 changes: 1 addition & 1 deletion examples/pug-stylus-coffee/modules/coffeescript.js
@@ -1,6 +1,6 @@
export default function () {
// Add .coffee extension for store, middleware and more
this.nuxt.options.extensions.push('coffee')
this.nuxt.options.build.additionalExtensions.push('coffee')
// Extend build
const coffeeLoader = {
test: /\.coffee$/,
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/builder.js
Expand Up @@ -44,7 +44,7 @@ export default class Builder {
restart: null
}

this.supportedExtensions = ['vue', 'js', ...(this.options.extensions || []), ...(this.options.build.additionalExtensions || [])]
this.supportedExtensions = ['vue', 'js', ...(this.options.build.additionalExtensions || [])]

// Helper to resolve build paths
this.relativeToBuild = (...args) => relativeTo(this.options.buildDir, ...args)
Expand Down

0 comments on commit c1e8c0f

Please sign in to comment.