Skip to content

Commit

Permalink
docs: fix typo in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Mar 12, 2023
2 parents 21be52b + 8e7ac44 commit 0f82297
Show file tree
Hide file tree
Showing 38 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion examples/chunkhash/README.md
Expand Up @@ -20,7 +20,7 @@ import("./async2");
```javascript
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
main: "./example"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/chunkhash/webpack.config.js
@@ -1,6 +1,6 @@
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
main: "./example"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/coffee-script/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
module: {
rules: [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/common-chunk-grandchildren/README.md
Expand Up @@ -86,7 +86,7 @@ module.exports = function() {
const path = require("path");

module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
main: ["./example.js"]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/common-chunk-grandchildren/webpack.config.js
Expand Up @@ -2,7 +2,7 @@
const path = require("path");

module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
main: ["./example.js"]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/dll-app-and-vendor/0-vendor/README.md
Expand Up @@ -13,7 +13,7 @@ var path = require("path");
var webpack = require("../../../");

module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
context: __dirname,
entry: ["example-vendor"],
output: {
Expand Down
2 changes: 1 addition & 1 deletion examples/dll-app-and-vendor/0-vendor/webpack.config.js
Expand Up @@ -2,7 +2,7 @@ var path = require("path");
var webpack = require("../../../");

module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
context: __dirname,
entry: ["example-vendor"],
output: {
Expand Down
2 changes: 1 addition & 1 deletion examples/dll-user/README.md
Expand Up @@ -10,7 +10,7 @@ This is the _user_ bundle, which uses the manifest from [dll-reference example](
var path = require("path");
var webpack = require("../../");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
plugins: [
new webpack.DllReferencePlugin({
context: path.join(__dirname, "..", "dll"),
Expand Down
2 changes: 1 addition & 1 deletion examples/dll-user/webpack.config.js
@@ -1,7 +1,7 @@
var path = require("path");
var webpack = require("../../");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
plugins: [
new webpack.DllReferencePlugin({
context: path.join(__dirname, "..", "dll"),
Expand Down
2 changes: 1 addition & 1 deletion examples/dll/README.md
Expand Up @@ -10,7 +10,7 @@ This is the _reference_ bundle (with the manifests) for [dll user example](https
var path = require("path");
var webpack = require("../../");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
resolve: {
extensions: [".js", ".jsx"]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/dll/webpack.config.js
@@ -1,7 +1,7 @@
var path = require("path");
var webpack = require("../../");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
resolve: {
extensions: [".js", ".jsx"]
},
Expand Down
4 changes: 2 additions & 2 deletions examples/explicit-vendor-chunk/README.md
Expand Up @@ -6,7 +6,7 @@ var webpack = require("../../");
module.exports = [
{
name: "vendor",
// mode: "development || "production",
// mode: "development" || "production",
entry: ["./vendor", "./vendor2"],
output: {
path: path.resolve(__dirname, "dist"),
Expand All @@ -23,7 +23,7 @@ module.exports = [

{
name: "app",
// mode: "development || "production",
// mode: "development" || "production",
dependencies: ["vendor"],
entry: {
pageA: "./pageA",
Expand Down
4 changes: 2 additions & 2 deletions examples/explicit-vendor-chunk/webpack.config.js
Expand Up @@ -3,7 +3,7 @@ var webpack = require("../../");
module.exports = [
{
name: "vendor",
// mode: "development || "production",
// mode: "development" || "production",
entry: ["./vendor", "./vendor2"],
output: {
path: path.resolve(__dirname, "dist"),
Expand All @@ -20,7 +20,7 @@ module.exports = [

{
name: "app",
// mode: "development || "production",
// mode: "development" || "production",
dependencies: ["vendor"],
entry: {
pageA: "./pageA",
Expand Down
2 changes: 1 addition & 1 deletion examples/externals/README.md
Expand Up @@ -28,7 +28,7 @@ exports.exampleValue = subtract(add(42, 2), 2);

```javascript
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
output: {
libraryTarget: "umd"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/externals/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
output: {
libraryTarget: "umd"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/extra-async-chunk-advanced/README.md
Expand Up @@ -23,7 +23,7 @@ require.ensure(["./a", "./e"], function(require) {

```javascript
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
optimization: {
splitChunks: {
minSize: 0 // This example is too small
Expand Down
2 changes: 1 addition & 1 deletion examples/extra-async-chunk-advanced/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
optimization: {
splitChunks: {
minSize: 0 // This example is too small
Expand Down
2 changes: 1 addition & 1 deletion examples/extra-async-chunk/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
optimization: {
splitChunks: {
minSize: 0 // This example is too small
Expand Down
2 changes: 1 addition & 1 deletion examples/harmony-library/README.md
Expand Up @@ -3,7 +3,7 @@
```javascript
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: "./example",
output: {
path: path.join(__dirname, "dist"),
Expand Down
2 changes: 1 addition & 1 deletion examples/harmony-library/webpack.config.js
@@ -1,6 +1,6 @@
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: "./example",
output: {
path: path.join(__dirname, "dist"),
Expand Down
2 changes: 1 addition & 1 deletion examples/harmony-unused/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
optimization: {
concatenateModules: false
}
Expand Down
2 changes: 1 addition & 1 deletion examples/http2-aggressive-splitting/README.md
Expand Up @@ -20,7 +20,7 @@ The backward compatibility (non-HTTP2 client) improves with bigger `maxSize`, as
var path = require("path");
var webpack = require("../../");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
cache: true, // better performance for the AggressiveSplittingPlugin
entry: "./example",
output: {
Expand Down
2 changes: 1 addition & 1 deletion examples/http2-aggressive-splitting/webpack.config.js
@@ -1,7 +1,7 @@
var path = require("path");
var webpack = require("../../");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
cache: true, // better performance for the AggressiveSplittingPlugin
entry: "./example",
output: {
Expand Down
2 changes: 1 addition & 1 deletion examples/hybrid-routing/README.md
Expand Up @@ -3,7 +3,7 @@
```javascript
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
// The entry points for the pages
// They also contains router
Expand Down
2 changes: 1 addition & 1 deletion examples/hybrid-routing/webpack.config.js
@@ -1,6 +1,6 @@
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
// The entry points for the pages
// They also contains router
Expand Down
2 changes: 1 addition & 1 deletion examples/loader/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
module: {
rules: [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/many-pages/README.md
Expand Up @@ -26,7 +26,7 @@ Note: decreasing `maxInitial/AsyncRequest` will increase duplication further to

```
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
pageA: "./pages/a",
pageB: "./pages/b",
Expand Down
2 changes: 1 addition & 1 deletion examples/many-pages/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
pageA: "./pages/a",
pageB: "./pages/b",
Expand Down
4 changes: 2 additions & 2 deletions examples/multi-compiler/README.md
Expand Up @@ -15,7 +15,7 @@ var webpack = require("../../");
module.exports = [
{
name: "mobile",
// mode: "development || "production",
// mode: "development" || "production",
entry: "./example",
output: {
path: path.join(__dirname, "dist"),
Expand All @@ -30,7 +30,7 @@ module.exports = [

{
name: "desktop",
// mode: "development || "production",
// mode: "development" || "production",
entry: "./example",
output: {
path: path.join(__dirname, "dist"),
Expand Down
4 changes: 2 additions & 2 deletions examples/multi-compiler/webpack.config.js
Expand Up @@ -3,7 +3,7 @@ var webpack = require("../../");
module.exports = [
{
name: "mobile",
// mode: "development || "production",
// mode: "development" || "production",
entry: "./example",
output: {
path: path.join(__dirname, "dist"),
Expand All @@ -18,7 +18,7 @@ module.exports = [

{
name: "desktop",
// mode: "development || "production",
// mode: "development" || "production",
entry: "./example",
output: {
path: path.join(__dirname, "dist"),
Expand Down
2 changes: 1 addition & 1 deletion examples/multi-part-library/README.md
Expand Up @@ -17,7 +17,7 @@ Note: When your library has dependencies that should not be included in the comp
```javascript
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
alpha: "./alpha",
beta: "./beta"
Expand Down
2 changes: 1 addition & 1 deletion examples/multi-part-library/webpack.config.js
@@ -1,6 +1,6 @@
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
alpha: "./alpha",
beta: "./beta"
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-entry-points/README.md
Expand Up @@ -51,7 +51,7 @@ require.ensure(["./shared"], function(require) {

```javascript
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
pageA: "./pageA",
pageB: "./pageB"
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-entry-points/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
pageA: "./pageA",
pageB: "./pageB"
Expand Down
2 changes: 1 addition & 1 deletion examples/two-explicit-vendor-chunks/README.md
Expand Up @@ -3,7 +3,7 @@
```javascript
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
vendor1: ["./vendor1"],
vendor2: ["./vendor2"],
Expand Down
2 changes: 1 addition & 1 deletion examples/two-explicit-vendor-chunks/webpack.config.js
@@ -1,6 +1,6 @@
var path = require("path");
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
entry: {
vendor1: ["./vendor1"],
vendor2: ["./vendor2"],
Expand Down
2 changes: 1 addition & 1 deletion examples/wasm-complex/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
output: {
publicPath: "dist/"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/wasm-simple/webpack.config.js
@@ -1,5 +1,5 @@
module.exports = {
// mode: "development || "production",
// mode: "development" || "production",
output: {
webassemblyModuleFilename: "[hash].wasm",
publicPath: "dist/"
Expand Down

0 comments on commit 0f82297

Please sign in to comment.