Skip to content

Commit 0e7ee2c

Browse files
committed
fix: allow absolute paths in indexHtmlFile
1 parent a23dba1 commit 0e7ee2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm/webpack-dev-server/src/makeDefaultWebpackConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function makeCypressWebpackConfig (
8181
},
8282
plugins: [
8383
new (HtmlWebpackPlugin as typeof import('html-webpack-plugin-5'))({
84-
template: indexHtmlFile ? path.join(projectRoot, indexHtmlFile) : undefined,
84+
template: indexHtmlFile ? path.isAbsolute(indexHtmlFile) ? indexHtmlFile : path.join(projectRoot, indexHtmlFile) : undefined,
8585
// Angular generates all of it's scripts with <script type="module">. Live-reloading breaks without this option.
8686
// We need to manually set the base here to `/__cypress/src/` so that static assets load with our proxy
8787
...(framework === 'angular' ? { scriptLoading: 'module', base: '/__cypress/src/' } : {}),

0 commit comments

Comments
 (0)