Skip to content

Commit fedb916

Browse files
Merge pull request #70 from firefoxic/fix/dev-server
Fix static file paths for dev server
2 parents 9fe88ad + d8b31be commit fedb916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function startServer () {
127127
const serveStatic = PATHS_TO_STATIC
128128
.filter((path) => path.startsWith('!') === false)
129129
.map((path) => {
130-
const dir = path.replace(/\*\*(.*)/, '');
130+
const dir = path.replace(/(\/\*\*\/.*$)|\/$/, '');
131131
const route = dir.replace(PATH_TO_SOURCE, '/');
132132

133133
return { route, dir };

0 commit comments

Comments
 (0)