We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9fe88ad + d8b31be commit fedb916Copy full SHA for fedb916
gulpfile.js
@@ -127,7 +127,7 @@ export function startServer () {
127
const serveStatic = PATHS_TO_STATIC
128
.filter((path) => path.startsWith('!') === false)
129
.map((path) => {
130
- const dir = path.replace(/\*\*(.*)/, '');
+ const dir = path.replace(/(\/\*\*\/.*$)|\/$/, '');
131
const route = dir.replace(PATH_TO_SOURCE, '/');
132
133
return { route, dir };
0 commit comments