Commit 5a9ee913 authored by Evan You's avatar Evan You

feat: support being used on files not ending with .vue

parent 65fbde07
......@@ -108,10 +108,13 @@ function cloneRule (rule, normalizedRule) {
const res = Object.assign({}, rule, {
test: resource => {
currentResource = resource
return /\.vue$/.test(resource)
return true
},
resourceQuery: query => {
const parsed = qs.parse(query.slice(1))
if (parsed.vue == null) {
return false
}
const { resource, resourceQuery } = normalizedRule
if (resource && parsed.lang == null) {
return false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment