Skip to content

Commit 820e64b

Browse files
committed
Now filePattern is relative to the context.distDir property
1 parent 6a3bf8a commit 820e64b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ module.exports = {
2020
defaultConfig: {
2121
host: 'localhost',
2222
port: 6379,
23-
filePattern: 'dist/index.html',
23+
filePattern: function(context) {
24+
return context.distDir + '/index.html';
25+
},
2426
keyPrefix: function(context){
2527
return context.project.name() + ':index';
2628
},

0 commit comments

Comments
 (0)