Permalink
Browse files

fix: wrong axios ordering in windows platform. (#56)

  • Loading branch information...
pi0 committed Feb 6, 2018
1 parent 55e0fbe commit 44db0d444d83db42acd2fb85708812ab0fd8088f
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/module.js
@@ -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

0 comments on commit 44db0d4

Please sign in to comment.