-
-
Notifications
You must be signed in to change notification settings - Fork 372
Closed
Labels
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I discovered this bug because routes are named *.chunk.*.js instead of route-*.js in the build output. This happens because Windows' backslash-delimited file paths (e.g. C:\Users\me\dev\project\src\routes\home\index.js aren't matched by these strings and regexes:
There are probably more occurences of this throughout the webpack configs.
If the current behavior is a bug, please provide the steps to reproduce.
preact create default teston Windowscd test,npm installnpm run build- In the
buildfolder, route chunks aren't prefixed withroute-
What is the expected behavior?
In this specific case, routes should be prefixed with route-, like on UNIX systems.
Generally, both / and \-delimited paths should be matched in webpack configs.
Please mention other relevant information.
- node version 8.9.1
- npm version 5.6.0
- Operating system Windows 10 1709