Skip to content

Commit 1e5c1b0

Browse files
authored
Merge pull request #544 from vprasanth/umaster
Added small blurb about __dirname in config section.
2 parents 79cecff + 8829df2 commit 1e5c1b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/configuration/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Webpack is fed via a configuration object. It is passed in one of two ways depen
1212

1313
T> New to webpack? Check out our guide to some of webpack's [core concepts](/concepts) to get started!
1414

15-
T> Notice that throughout the configuration we use Node's built-in [path module](https://nodejs.org/api/path.html). This prevents file path issues between operating systems. See [this section](https://nodejs.org/api/path.html#path_windows_vs_posix) for more.
15+
T> Notice that throughout the configuration we use Node's built-in [path module](https://nodejs.org/api/path.html) and prefix it with the [__dirname](https://nodejs.org/docs/latest/api/globals.html#globals_dirname) global. This prevents file path issues between operating systems and allows relative paths to work as expected. See [this section](https://nodejs.org/api/path.html#path_windows_vs_posix) for more info on POSIX vs. Windows paths.
1616

1717
## Options
1818

0 commit comments

Comments
 (0)