--debug
Switch loaders to debug mode
The following sections contain all you need to know about editing and formatting the content within this site. Make sure to do some research before starting your edits or additions. Sometimes the toughest part is finding where the content should live and determining whether or not it already exists.
edit and expand on the structure.Each article contains a small section at the top written in YAML Frontmatter:
---
title: My Article
group: My Sub-Section
sort: 3
contributors:
- [github username]
related:
- title: Title of Related Article
url: [url of related article]
---
Let's break these down:
title: The name of the article.group: The name of the sub-sectionsort: The order of the article within its section (or) sub-section if it is present.contributors: A list of GitHub usernames who have contributed to this article.related: Any related reading or useful examples.Note that related will generate a Further Reading section at the bottom of the page and contributors will yield a Contributors section below it. If you edit an article and would like recognition, don't hesitate to add your GitHub username to the contributors list.
css-loader, ts-loader, …BannerPlugin, NpmInstallWebpackPlugin, …Syntax: ```javascript … ```
function foo () {
return 'bar';
}
foo();
Use single quotes in code snippets and project files (.jsx, .scss etc):
- import webpack from "webpack";
+ import webpack from 'webpack';
And in inline backticks:
correct
Set value to 'index.md'...
incorrect
Set value to "index.md"...
Lists should be ordered alphabetically.
| Parameter | Explanation | Input Type | Default Value |
|---|---|---|---|
Parameter Explanation Input Type Default Value --debug Switch loaders to debug mode |
Switch loaders to debug mode | boolean | false |
Parameter Explanation Input Type Default Value --devtool Define source map type for the bundled resources |
Define source map type for the bundled resources | string | - |
Parameter Explanation Input Type Default Value --progress Print compilation progress in percentage |
Print compilation progress in percentage | boolean | false |
Tables should also be ordered alphabetically.
The configuration properties should be ordered alphabetically as well:
devServer.compressdevServer.contentBasedevServer.hotSyntax: >
This is a blockquote.
Syntax: T>
This is a tip.
Syntax: W>
This is a warning.
Syntax: ?>
This is a todo.
Do not make assumptions when writing the documentation.
- You might already know how to optimize bundle for production...
+ As we've learned in [production guide](/guides/production/)...
Please do not assume things are simple. Avoid words like 'just', 'simply'.
- Simply run command...
+ Run the `command-name` command...