mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
fix(builder): add hash to generated plugin names
A plugin named `bootstrap` results importing bootstrap jquery!
This commit is contained in:
parent
f626acf1f9
commit
80fb65040b
@ -63,7 +63,7 @@ export default class Builder {
|
|||||||
return {
|
return {
|
||||||
src: this.nuxt.resolvePath(p.src),
|
src: this.nuxt.resolvePath(p.src),
|
||||||
ssr: (p.ssr !== false),
|
ssr: (p.ssr !== false),
|
||||||
name: basename(p.src, extname(p.src)).replace(/[^a-zA-Z?\d\s:]/g, '')
|
name: basename(p.src, extname(p.src)).replace(/[^a-zA-Z?\d\s:]/g, '') + '_' + hash(p.src)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user