diff --git a/tools/gulp/tasks/docs.ts b/tools/gulp/tasks/docs.ts index 0751d594967..5360b72cc27 100644 --- a/tools/gulp/tasks/docs.ts +++ b/tools/gulp/tasks/docs.ts @@ -110,7 +110,7 @@ task('highlight-examples', () => { // rename files to fit format: [filename]-[filetype].html const renameFile = (filePath: any) => { const extension = filePath.extname.slice(1); - filePath.basename = `${path.basename}-${extension}`; + filePath.basename = `${filePath.basename}-${extension}`; }; return src('src/material-examples/**/*.+(html|css|ts)')