Commit 538198ee authored by Evan You's avatar Evan You

fix: ensure template cache uses unique identifier

parent 9a950f88
......@@ -72,7 +72,10 @@ module.exports.pitch = function (remainingRequest) {
// for templates: inject the template compiler & optional cache
if (query.type === `template`) {
const cacheLoader = cacheDirectory && cacheIdentifier
? [`cache-loader?${JSON.stringify(options)}`]
? [`cache-loader?${JSON.stringify({
cacheDirectory,
cacheIdentifier: cacheIdentifier + '-vue-loader-template'
})}`]
: []
const request = genRequest([
...cacheLoader,
......
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