diff --git a/examples/chunkhash/README.md b/examples/chunkhash/README.md index 3527107f0d5..669b7d68036 100644 --- a/examples/chunkhash/README.md +++ b/examples/chunkhash/README.md @@ -20,7 +20,7 @@ import("./async2"); ```javascript var path = require("path"); module.exports = { - // mode: "development || "production", + // mode: "development" || "production", entry: { main: "./example" }, diff --git a/examples/chunkhash/webpack.config.js b/examples/chunkhash/webpack.config.js index cc34d5591f9..d913bc14962 100644 --- a/examples/chunkhash/webpack.config.js +++ b/examples/chunkhash/webpack.config.js @@ -1,6 +1,6 @@ var path = require("path"); module.exports = { - // mode: "development || "production", + // mode: "development" || "production", entry: { main: "./example" }, diff --git a/examples/coffee-script/webpack.config.js b/examples/coffee-script/webpack.config.js index 845f9f4c190..91c59cf45a7 100644 --- a/examples/coffee-script/webpack.config.js +++ b/examples/coffee-script/webpack.config.js @@ -1,5 +1,5 @@ module.exports = { - // mode: "development || "production", + // mode: "development" || "production", module: { rules: [ { diff --git a/examples/common-chunk-grandchildren/README.md b/examples/common-chunk-grandchildren/README.md index ec028a663ec..5d2c035e90b 100644 --- a/examples/common-chunk-grandchildren/README.md +++ b/examples/common-chunk-grandchildren/README.md @@ -86,7 +86,7 @@ module.exports = function() { const path = require("path"); module.exports = { - // mode: "development || "production", + // mode: "development" || "production", entry: { main: ["./example.js"] }, diff --git a/examples/common-chunk-grandchildren/webpack.config.js b/examples/common-chunk-grandchildren/webpack.config.js index e8c14e818d9..ea9fdf2323e 100644 --- a/examples/common-chunk-grandchildren/webpack.config.js +++ b/examples/common-chunk-grandchildren/webpack.config.js @@ -2,7 +2,7 @@ const path = require("path"); module.exports = { - // mode: "development || "production", + // mode: "development" || "production", entry: { main: ["./example.js"] }, diff --git a/examples/dll-app-and-vendor/0-vendor/README.md b/examples/dll-app-and-vendor/0-vendor/README.md index 03f49db1171..6381a62a31a 100644 --- a/examples/dll-app-and-vendor/0-vendor/README.md +++ b/examples/dll-app-and-vendor/0-vendor/README.md @@ -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: { diff --git a/examples/dll-app-and-vendor/0-vendor/webpack.config.js b/examples/dll-app-and-vendor/0-vendor/webpack.config.js index 3572be39ce8..5a9099cdb5c 100644 --- a/examples/dll-app-and-vendor/0-vendor/webpack.config.js +++ b/examples/dll-app-and-vendor/0-vendor/webpack.config.js @@ -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: { diff --git a/examples/dll-user/README.md b/examples/dll-user/README.md index 3b7937fd2ba..0ca2eaa94a2 100644 --- a/examples/dll-user/README.md +++ b/examples/dll-user/README.md @@ -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"), diff --git a/examples/dll-user/webpack.config.js b/examples/dll-user/webpack.config.js index 7d058b6d535..c8d0d5210ad 100644 --- a/examples/dll-user/webpack.config.js +++ b/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"), diff --git a/examples/dll/README.md b/examples/dll/README.md index 056b9c6e7fd..fb673d48888 100644 --- a/examples/dll/README.md +++ b/examples/dll/README.md @@ -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"] }, diff --git a/examples/dll/webpack.config.js b/examples/dll/webpack.config.js index 8b13d6ca13d..6db3df6266c 100644 --- a/examples/dll/webpack.config.js +++ b/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"] }, diff --git a/examples/explicit-vendor-chunk/README.md b/examples/explicit-vendor-chunk/README.md index e950d72896f..3683157c664 100644 --- a/examples/explicit-vendor-chunk/README.md +++ b/examples/explicit-vendor-chunk/README.md @@ -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"), @@ -23,7 +23,7 @@ module.exports = [ { name: "app", - // mode: "development || "production", + // mode: "development" || "production", dependencies: ["vendor"], entry: { pageA: "./pageA", diff --git a/examples/explicit-vendor-chunk/webpack.config.js b/examples/explicit-vendor-chunk/webpack.config.js index 621a95494a0..e2b4a2911d8 100644 --- a/examples/explicit-vendor-chunk/webpack.config.js +++ b/examples/explicit-vendor-chunk/webpack.config.js @@ -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"), @@ -20,7 +20,7 @@ module.exports = [ { name: "app", - // mode: "development || "production", + // mode: "development" || "production", dependencies: ["vendor"], entry: { pageA: "./pageA", diff --git a/examples/externals/README.md b/examples/externals/README.md index fb7ce0a4b41..6c22cd52992 100644 --- a/examples/externals/README.md +++ b/examples/externals/README.md @@ -28,7 +28,7 @@ exports.exampleValue = subtract(add(42, 2), 2); ```javascript module.exports = { - // mode: "development || "production", + // mode: "development" || "production", output: { libraryTarget: "umd" }, diff --git a/examples/externals/webpack.config.js b/examples/externals/webpack.config.js index 8210f6627a5..6a9400effbd 100644 --- a/examples/externals/webpack.config.js +++ b/examples/externals/webpack.config.js @@ -1,5 +1,5 @@ module.exports = { - // mode: "development || "production", + // mode: "development" || "production", output: { libraryTarget: "umd" }, diff --git a/examples/extra-async-chunk-advanced/README.md b/examples/extra-async-chunk-advanced/README.md index 5efbc1aacf7..ef6f66d7857 100644 --- a/examples/extra-async-chunk-advanced/README.md +++ b/examples/extra-async-chunk-advanced/README.md @@ -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 diff --git a/examples/extra-async-chunk-advanced/webpack.config.js b/examples/extra-async-chunk-advanced/webpack.config.js index f256bc78706..bf11207f017 100644 --- a/examples/extra-async-chunk-advanced/webpack.config.js +++ b/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 diff --git a/examples/extra-async-chunk/webpack.config.js b/examples/extra-async-chunk/webpack.config.js index f256bc78706..bf11207f017 100644 --- a/examples/extra-async-chunk/webpack.config.js +++ b/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 diff --git a/examples/harmony-library/README.md b/examples/harmony-library/README.md index 200a873cc00..3cd76f2032d 100644 --- a/examples/harmony-library/README.md +++ b/examples/harmony-library/README.md @@ -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"), diff --git a/examples/harmony-library/webpack.config.js b/examples/harmony-library/webpack.config.js index 5700c38ed4b..a88f40e0fc9 100644 --- a/examples/harmony-library/webpack.config.js +++ b/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"), diff --git a/examples/harmony-unused/webpack.config.js b/examples/harmony-unused/webpack.config.js index 1aa1e0e591c..f370f58a23b 100644 --- a/examples/harmony-unused/webpack.config.js +++ b/examples/harmony-unused/webpack.config.js @@ -1,5 +1,5 @@ module.exports = { - // mode: "development || "production", + // mode: "development" || "production", optimization: { concatenateModules: false } diff --git a/examples/http2-aggressive-splitting/README.md b/examples/http2-aggressive-splitting/README.md index ed36d015293..c6ee2ff2234 100644 --- a/examples/http2-aggressive-splitting/README.md +++ b/examples/http2-aggressive-splitting/README.md @@ -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: { diff --git a/examples/http2-aggressive-splitting/webpack.config.js b/examples/http2-aggressive-splitting/webpack.config.js index 5150993a1b2..ae4ddd0538b 100644 --- a/examples/http2-aggressive-splitting/webpack.config.js +++ b/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: { diff --git a/examples/hybrid-routing/README.md b/examples/hybrid-routing/README.md index 70b36a2ec46..a2894268521 100644 --- a/examples/hybrid-routing/README.md +++ b/examples/hybrid-routing/README.md @@ -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 diff --git a/examples/hybrid-routing/webpack.config.js b/examples/hybrid-routing/webpack.config.js index f3e69bbd346..73a3e850c38 100644 --- a/examples/hybrid-routing/webpack.config.js +++ b/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 diff --git a/examples/loader/webpack.config.js b/examples/loader/webpack.config.js index 73f1713f0e0..b6d7cd8b90c 100644 --- a/examples/loader/webpack.config.js +++ b/examples/loader/webpack.config.js @@ -1,5 +1,5 @@ module.exports = { - // mode: "development || "production", + // mode: "development" || "production", module: { rules: [ { diff --git a/examples/many-pages/README.md b/examples/many-pages/README.md index 61c13962dbd..7a69d80b58c 100644 --- a/examples/many-pages/README.md +++ b/examples/many-pages/README.md @@ -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", diff --git a/examples/many-pages/webpack.config.js b/examples/many-pages/webpack.config.js index b5ce749f624..72b9ab5cdf1 100644 --- a/examples/many-pages/webpack.config.js +++ b/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", diff --git a/examples/multi-compiler/README.md b/examples/multi-compiler/README.md index 530e4ef4ec6..399f74df5a1 100644 --- a/examples/multi-compiler/README.md +++ b/examples/multi-compiler/README.md @@ -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"), @@ -30,7 +30,7 @@ module.exports = [ { name: "desktop", - // mode: "development || "production", + // mode: "development" || "production", entry: "./example", output: { path: path.join(__dirname, "dist"), diff --git a/examples/multi-compiler/webpack.config.js b/examples/multi-compiler/webpack.config.js index 4fc3088639a..369cfa0c0b9 100644 --- a/examples/multi-compiler/webpack.config.js +++ b/examples/multi-compiler/webpack.config.js @@ -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"), @@ -18,7 +18,7 @@ module.exports = [ { name: "desktop", - // mode: "development || "production", + // mode: "development" || "production", entry: "./example", output: { path: path.join(__dirname, "dist"), diff --git a/examples/multi-part-library/README.md b/examples/multi-part-library/README.md index 393e854c01d..988d6653fcc 100644 --- a/examples/multi-part-library/README.md +++ b/examples/multi-part-library/README.md @@ -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" diff --git a/examples/multi-part-library/webpack.config.js b/examples/multi-part-library/webpack.config.js index f79be11fe71..47537625b61 100644 --- a/examples/multi-part-library/webpack.config.js +++ b/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" diff --git a/examples/multiple-entry-points/README.md b/examples/multiple-entry-points/README.md index 0d49ec5ce9b..e371212c5bc 100644 --- a/examples/multiple-entry-points/README.md +++ b/examples/multiple-entry-points/README.md @@ -51,7 +51,7 @@ require.ensure(["./shared"], function(require) { ```javascript module.exports = { - // mode: "development || "production", + // mode: "development" || "production", entry: { pageA: "./pageA", pageB: "./pageB" diff --git a/examples/multiple-entry-points/webpack.config.js b/examples/multiple-entry-points/webpack.config.js index 4df8e07d565..a4fdc01c909 100644 --- a/examples/multiple-entry-points/webpack.config.js +++ b/examples/multiple-entry-points/webpack.config.js @@ -1,5 +1,5 @@ module.exports = { - // mode: "development || "production", + // mode: "development" || "production", entry: { pageA: "./pageA", pageB: "./pageB" diff --git a/examples/two-explicit-vendor-chunks/README.md b/examples/two-explicit-vendor-chunks/README.md index ac68dea231f..523bac6b4bf 100644 --- a/examples/two-explicit-vendor-chunks/README.md +++ b/examples/two-explicit-vendor-chunks/README.md @@ -3,7 +3,7 @@ ```javascript var path = require("path"); module.exports = { - // mode: "development || "production", + // mode: "development" || "production", entry: { vendor1: ["./vendor1"], vendor2: ["./vendor2"], diff --git a/examples/two-explicit-vendor-chunks/webpack.config.js b/examples/two-explicit-vendor-chunks/webpack.config.js index 582fdd0dbb2..68a018fbfbd 100644 --- a/examples/two-explicit-vendor-chunks/webpack.config.js +++ b/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"], diff --git a/examples/wasm-complex/webpack.config.js b/examples/wasm-complex/webpack.config.js index ee188b60683..13de5cdac2f 100644 --- a/examples/wasm-complex/webpack.config.js +++ b/examples/wasm-complex/webpack.config.js @@ -1,5 +1,5 @@ module.exports = { - // mode: "development || "production", + // mode: "development" || "production", output: { publicPath: "dist/" }, diff --git a/examples/wasm-simple/webpack.config.js b/examples/wasm-simple/webpack.config.js index 70ba131d8c3..990ea91fc6f 100644 --- a/examples/wasm-simple/webpack.config.js +++ b/examples/wasm-simple/webpack.config.js @@ -1,5 +1,5 @@ module.exports = { - // mode: "development || "production", + // mode: "development" || "production", output: { webassemblyModuleFilename: "[hash].wasm", publicPath: "dist/"