Skip to content

Commit

Permalink
fix: check loader for cnpm(npminstall) (#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
meowtec authored and yyx990803 committed May 28, 2018
1 parent 964423d commit 37fbaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class VueLoaderPlugin {
const vueUse = vueRule.use
// get vue-loader options
const vueLoaderUseIndex = vueUse.findIndex(u => {
return /^vue-loader|(\/|\\)vue-loader/.test(u.loader)
return /^vue-loader|(\/|\\|@)vue-loader/.test(u.loader)
})

if (vueLoaderUseIndex < 0) {
Expand Down

0 comments on commit 37fbaeb

Please sign in to comment.