Skip to content

Commit 8d20a86

Browse files
authored
Merge pull request #693 from rouzbeh84/concepts-tweaking-ammend
formatting fixes and adding handle to contrib table
2 parents e935d44 + 3091b37 commit 8d20a86

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

content/concepts/hot-module-replacement.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ contributors:
55
- SpaceK33z
66
- sokra
77
- GRardB
8+
- rouzbeh84
89
---
910

1011
Hot Module Replacement (HMR) exchanges, adds, or removes

content/concepts/modules.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sort: 7
44
contributors:
55
- TheLarkInn
66
- simon04
7+
- rouzbeh84
78
---
89

910
In [modular programming](https://en.wikipedia.org/wiki/Modular_programming), developers break programs up into discrete chunks of functionality called a _module_.

content/concepts/output.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ sort: 3
44
contributors:
55
- TheLarkInn
66
- chyipin
7+
- rouzbeh84
78
---
89

910
Options affecting the output of the compilation. `output` options tell Webpack how to write the compiled files to disk. Note, that while there can be multiple `entry` points, only one `output` configuration is specified.
1011

1112
If you use any hashing (`[hash]` or `[chunkhash]`), make sure to have a consistent ordering of modules. Use the `OccurrenceOrderPlugin` or `recordsPath`.
1213

13-
# Usage
14+
## Usage
1415

1516
The minimum requirements for the `output` property in your webpack config is to set its value to an object including the following two things :
1617

@@ -31,11 +32,11 @@ const config = {
3132
module.exports = config;
3233
```
3334

34-
# Options
35+
## Options
3536

3637
The following is a list of values you can pass to the `output` property.
3738

38-
## `output.chunkFilename`
39+
### `output.chunkFilename`
3940

4041
The filename of non-entry chunks as a relative path inside the `output.path` directory.
4142

@@ -47,7 +48,7 @@ The filename of non-entry chunks as a relative path inside the `output.path` dir
4748

4849
`[chunkhash]` is replaced by the hash of the chunk.
4950

50-
## `output.crossOriginLoading`
51+
### `output.crossOriginLoading`
5152

5253
This option enables cross-origin loading of chunks.
5354

@@ -63,9 +64,11 @@ For more information on cross-origin loading see [MDN](https://developer.mozilla
6364

6465
> Default: `false`
6566
66-
> see also [[library and externals]] see also [[Development Tools]]
67+
> see also [[library and externals]]
6768
68-
## `output.devtoolLineToLine`
69+
> see also [[Development Tools]]
70+
71+
### `output.devtoolLineToLine`
6972

7073
Enable line-to-line mapped mode for all/specified modules. Line-to-line mapped mode uses a simple SourceMap where each line of the generated source is mapped to the same line of the original source. It's a performance optimization. Only use it if your performance needs to be better and you are sure that input lines match which generated lines.
7174

@@ -75,7 +78,7 @@ An object `{test, include, exclude}` similar to `module.loaders` enables it for
7578

7679
> Default: `false`
7780
78-
## `output.filename`
81+
### `output.filename`
7982

8083
Specifies the name of each output file on disk. You must **not** specify an absolute path here! The `output.path` option determines the location on disk the files are written. `filename` is used solely for naming the individual files.
8184

@@ -118,7 +121,7 @@ If your configuration creates more than a single "chunk" (as with multiple entry
118121
// writes to disk: ./build/app.js, ./build/search.js
119122
```
120123

121-
## `output.hotUpdateChunkFilename`
124+
### `output.hotUpdateChunkFilename`
122125

123126
The filename of the Hot Update Chunks. They are inside the `output.path` directory.
124127

@@ -128,35 +131,35 @@ The filename of the Hot Update Chunks. They are inside the `output.path` directo
128131

129132
> Default: `"[id].[hash].hot-update.js"`
130133
131-
## `output.hotUpdateFunction`
134+
### `output.hotUpdateFunction`
132135

133136
The JSONP function used by webpack for async loading of hot update chunks.
134137

135138
> Default: `"webpackHotUpdate"`
136139
137-
## `output.hotUpdateMainFilename`
140+
### `output.hotUpdateMainFilename`
138141

139142
The filename of the Hot Update Main File. It is inside the `output.path` directory.
140143

141144
`[hash]` is replaced by the hash of the compilation. (The last hash stored in the records)
142145

143146
> Default: `"[hash].hot-update.json"`
144147
145-
## `output.jsonpFunction`
148+
### `output.jsonpFunction`
146149

147150
The JSONP function used by webpack for asnyc loading of chunks.
148151

149152
A shorter function may reduce the file size a bit. Use a different identifier when having multiple webpack instances on a single page.
150153

151154
> Default: `"webpackJsonp"`
152155
153-
## `output.library`
156+
### `output.library`
154157

155158
If set, export the bundle as library. `output.library` is the name.
156159

157160
Use this if you are writing a library and want to publish it as single file.
158161

159-
## `output.libraryTarget`
162+
### `output.libraryTarget`
160163

161164
Which format to export the library:
162165

@@ -176,7 +179,7 @@ Which format to export the library:
176179
177180
If `output.library` is not set, but `output.libraryTarget` is set to a value other than `var`, every property of the exported object is copied (Except `amd`, `commonjs2` and `umd`).
178181

179-
## `output.path`
182+
### `output.path`
180183

181184
The output directory as an **absolute path** (required).
182185

@@ -218,7 +221,7 @@ output: {
218221
// rest of your application entry
219222
```
220223

221-
## `output.sourceMapFilename`
224+
### `output.sourceMapFilename`
222225

223226
The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.
224227

content/concepts/plugins.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sort: 5
44
contributors:
55
- TheLarkInn
66
- jhnns
7+
- rouzbeh84
78
---
89

910
**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!

content/concepts/targets.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Targets
33
sort: 10
44
contributors:
55
- TheLarkInn
6+
- rouzbeh84
67
---
78

89
Because JavaScript can be written for both server and browser, webpack offers multiple deployment _targets_ that you can set in your webpack [configuration](/configuration).

0 commit comments

Comments
 (0)