You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/content/concepts/module-resolution.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ Using `enhanced-resolve`, webpack can resolve three kinds of file paths:
29
29
### Absolute paths
30
30
31
31
```js
32
-
import"/home/me/file";
32
+
import'/home/me/file';
33
33
34
-
import"C:\\Users\\me\\file";
34
+
import'C:\\Users\\me\\file';
35
35
```
36
36
37
37
Since we already have the absolute path to the file, no further resolution is required.
@@ -40,8 +40,8 @@ Since we already have the absolute path to the file, no further resolution is re
40
40
### Relative paths
41
41
42
42
```js
43
-
import"../src/file1";
44
-
import"./file2";
43
+
import'../src/file1';
44
+
import'./file2';
45
45
```
46
46
47
47
In this case, the directory of the resource file where the `import` or `require` occurs is taken to be the context directory. The relative path specified in the `import/require` is joined to this context path to produce the absolute path to the module.
@@ -50,8 +50,8 @@ In this case, the directory of the resource file where the `import` or `require`
50
50
### Module paths
51
51
52
52
```js
53
-
import"module";
54
-
import"module/lib/file";
53
+
import'module';
54
+
import'module/lib/file';
55
55
```
56
56
57
57
Modules are searched for inside all directories specified in [`resolve.modules`](/configuration/resolve/#resolve-modules).
Copy file name to clipboardexpand all lines: src/content/concepts/plugins.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ contributors:
6
6
- jhnns
7
7
- rouzbeh84
8
8
- johnstew
9
+
- byzyk
9
10
---
10
11
11
12
**Plugins** are the [backbone](https://github.com/webpack/tapable) of webpack. webpack itself is built on the **same plugin system** that you use in your webpack configuration!
0 commit comments