We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55e0fbe commit 44db0d4Copy full SHA for 44db0d4
1 file changed
lib/module.js
@@ -28,9 +28,7 @@ module.exports = function (moduleOptions) {
28
})
29
30
// Add plugin just after $axios
31
- const index = this.options.plugins.findIndex(p =>
32
- (p.src || p).includes('/axios.js')
33
- )
+ const index = this.options.plugins.findIndex(p => /axios\.js$/.test(p.src || p))
34
this.options.plugins.splice(index + 1, 0, join(this.options.buildDir, dst))
35
36
// Middleware
0 commit comments