Skip to content

Commit

Permalink
fix: ensure template cache uses unique identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 25, 2018
1 parent 01cf322 commit bdb13be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/loaders/pitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bdb13be

Please sign in to comment.