Skip to content

Commit 45db042

Browse files
osenvosemTheDutchCoder
authored andcommitted
docs(Stats): add buitlAt to the example configuration (#1878)
This adds the `builtAt` option to the example configuration.
1 parent 44eb6c9 commit 45db042

11 files changed

+16318
-12
lines changed

package-lock.json

Lines changed: 16295 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/configuration/stats.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ stats: {
4444
// Sort assets by a field
4545
// You can reverse the sort with `!field`.
4646
assetsSort: "field",
47+
// Add build date and time information
48+
builtAt: true,
4749
// Add information about cached (not built) modules
4850
cached: true,
4951
// Show cached assets (setting this to `false` only shows emitted files)

src/content/guides/asset-management.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Let's make a minor change to our project before we get started:
2121
__dist/index.html__
2222

2323
``` diff
24+
<!doctype html>
2425
<html>
2526
<head>
2627
- <title>Getting Started</title>

src/content/guides/author-libraries.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,18 @@ require(['webpackNumbers'], function ( webpackNumbers) {
101101
The consumer also can use the library by loading it via a script tag:
102102

103103
``` html
104+
<!doctype html>
104105
<html>
105-
...
106-
<script src="https://unpkg.com/webpack-numbers"></script>
107-
<script>
108-
// ...
109-
// Global variable
110-
webpackNumbers.wordToNum('Five')
111-
// Property in the window object
112-
window.webpackNumbers.wordToNum('Five')
113-
// ...
114-
</script>
106+
...
107+
<script src="https://unpkg.com/webpack-numbers"></script>
108+
<script>
109+
// ...
110+
// Global variable
111+
webpackNumbers.wordToNum('Five')
112+
// Property in the window object
113+
window.webpackNumbers.wordToNum('Five')
114+
// ...
115+
</script>
115116
</html>
116117
```
117118

src/content/guides/development-vagrant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636
And create a `index.html` file. The script tag should point to your bundle. If `output.filename` is not specified in the config, this will be `bundle.js`.
3737

3838
```html
39-
<!DOCTYPE html>
39+
<!doctype html>
4040
<html>
4141
<head>
4242
<script src="/bundle.js" charset="utf-8"></script>

src/content/guides/getting-started.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ document.body.appendChild(component());
6060
__index.html__
6161

6262
``` html
63+
<!doctype html>
6364
<html>
6465
<head>
6566
<title>Getting Started</title>
@@ -157,6 +158,7 @@ Now, since we'll be bundling our scripts, we have to update our `index.html` fil
157158
__dist/index.html__
158159

159160
``` diff
161+
<!doctype html>
160162
<html>
161163
<head>
162164
<title>Getting Started</title>

src/content/guides/output-management.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Let's also update our `dist/index.html` file, in preparation for webpack to spli
6969
__dist/index.html__
7070

7171
``` diff
72+
<!doctype html>
7273
<html>
7374
<head>
7475
- <title>Asset Management</title>

src/content/guides/shimming.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ With that in place, we can add the logic to conditionally load our new `polyfill
374374
__dist/index.html__
375375

376376
``` diff
377+
<!doctype html>
377378
<html>
378379
<head>
379380
<title>Getting Started</title>

src/content/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module.exports = {
4545
__page.html__
4646

4747
```html
48+
<!doctype html>
4849
<html>
4950
<head>
5051
...

src/content/plugins/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Name | Description
1616
[`BabelMinifyWebpackPlugin`](/plugins/babel-minify-webpack-plugin) | Minification with [babel-minify](https://github.com/babel/minify)
1717
[`BannerPlugin`](/plugins/banner-plugin) | Add a banner to the top of each generated chunk
1818
[`CommonsChunkPlugin`](/plugins/commons-chunk-plugin) | Extract common modules shared between chunks
19-
[`ComponentWebpackPlugin`](/plugins/component-webpack-plugin) | Use components with webpack
2019
[`CompressionWebpackPlugin`](/plugins/compression-webpack-plugin) | Prepare compressed versions of assets to serve them with Content-Encoding
2120
[`ContextReplacementPlugin`](/plugins/context-replacement-plugin) | Override the inferred context of a `require` expression
2221
[`DefinePlugin`](/plugins/define-plugin) | Allow global constants configured at compile time

src/scripts/fetch.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ node ./src/scripts/fetch_package_names.js "peerigon" "extract-loader" | node ./s
1616
# Fetch webpack-contrib (and various other) plugin repositories
1717
node ./src/scripts/fetch_package_names.js "webpack-contrib" "-webpack-plugin" | node ./src/scripts/fetch_package_files.js "README.md" "./generated/plugins"
1818

19+
# Remove deprecated or archived plugins repositories
20+
rm ./generated/plugins/component-webpack-plugin.json ./generated/plugins/component-webpack-plugin.md
21+
1922
# Fetch sponsors and backers from opencollective
2023
node ./src/scripts/fetch_supporters.js
2124

0 commit comments

Comments
 (0)