Skip to content
Permalink
Browse files
fix: wrong axios ordering in windows platform. (#56)
  • Loading branch information
Pooya Parsa committed Feb 6, 2018
1 parent 55e0fbe commit 44db0d444d83db42acd2fb85708812ab0fd8088f
Showing 1 changed file with 1 addition and 3 deletions.
@@ -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.