Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit 4b8e46e

Browse files
committed
🐛 fix windows path for globalPaths (closes #101, #102)
1 parent 03f8816 commit 4b8e46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/app/index.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<% if (htmlWebpackPlugin.options.appModules) { %>
77
<!-- Add `app/node_modules` to global paths so `require` works properly in development -->
88
<script>
9-
require('module').globalPaths.push('<%= htmlWebpackPlugin.options.appModules %>')
9+
require('module').globalPaths.push('<%= htmlWebpackPlugin.options.appModules.replace(/\\/g, '\\\\') %>')
1010
</script>
1111
<% } %>
1212
</head>

0 commit comments

Comments
 (0)