diff --git a/lib/module.js b/lib/module.js index fbd9eb13f..efe4df7d0 100644 --- a/lib/module.js +++ b/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