Skip to content

Commit

Permalink
fix: wrong axios ordering in windows platform. (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Feb 6, 2018
1 parent 55e0fbe commit 44db0d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ module.exports = function (moduleOptions) {
})

// Add plugin just after $axios
const index = this.options.plugins.findIndex(p =>
(p.src || p).includes('/axios.js')
)
const index = this.options.plugins.findIndex(p => /axios\.js$/.test(p.src || p))
this.options.plugins.splice(index + 1, 0, join(this.options.buildDir, dst))

// Middleware
Expand Down

0 comments on commit 44db0d4

Please sign in to comment.