Skip to content

Commit b5b2c34

Browse files
authored
Merge branch 'main' into docs/typo-fixes
2 parents e079afa + e3d8202 commit b5b2c34

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/content/plugins/normal-module-replacement-plugin.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ new webpack.NormalModuleReplacementPlugin(resourceRegExp, newResource);
1919

2020
Note that the `resourceRegExp` is tested against the request you write in your code, not the resolved resource. For instance, `'./sum'` will be used to test instead of `'./sum.js'` when you have code `import sum from './sum'`.
2121

22+
2223
Also please note that when using Windows, you have to accommodate the different folder separator symbol. E.g. `/src\/environments\/environment\.ts/` won't work on Windows, you have to use `/src[\\/]environments[\\/]environment\.ts/,` instead.
2324

25+
2426
## Basic Example
2527

2628
Replace a specific module when building for a [development environment](/guides/production).

0 commit comments

Comments
 (0)