digitalocean / nginxconfig.io

⚙️ NGINX config generator on steroids 💉
https://do.co/nginxconfig
MIT License
27.66k stars 2.04k forks source link

Fix Webpack magic comments for Windows #413

Closed MattIPv4 closed 1 year ago

MattIPv4 commented 1 year ago

Type of Change

What issue does this relate to?

Resolves #408

What should this PR do?

Fixes the Webpack magic comments used to determine what i18n files to include in the dynamic comments. Native JS will handle using / as the directory separator on Windows, but it seems that the RegEx patterns used by the Webpack magic comments do not map that, and so need to explicitly support using \ as the separator.

What are the acceptance criteria?

On Windows systems, the tool builds and runs as expected. On BSD/Linux systems, the tool builds and runs as expected.