diff --git a/.gitignore b/.gitignore
index e405d9241..1142de1e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,7 @@
/test/fixtures/temp-cache-fixture
/benchmark/js
/benchmark/fixtures
-/examples/**/js
+/examples/**/dist
/coverage
.DS_Store
*.log
diff --git a/examples/aggressive-merging/README.md b/examples/aggressive-merging/README.md
index 8f5c1f7ba..d15156051 100644
--- a/examples/aggressive-merging/README.md
+++ b/examples/aggressive-merging/README.md
@@ -39,7 +39,7 @@ module.exports = {
pageC: "./pageC"
},
output: {
- path: path.join(__dirname, "js"),
+ path: path.join(__dirname, "dist"),
filename: "[name].bundle.js",
chunkFilename: "[id].chunk.js"
},
diff --git a/examples/aggressive-merging/webpack.config.js b/examples/aggressive-merging/webpack.config.js
index eb8afedba..77e57e8c5 100644
--- a/examples/aggressive-merging/webpack.config.js
+++ b/examples/aggressive-merging/webpack.config.js
@@ -8,7 +8,7 @@ module.exports = {
pageC: "./pageC"
},
output: {
- path: path.join(__dirname, "js"),
+ path: path.join(__dirname, "dist"),
filename: "[name].bundle.js",
chunkFilename: "[id].chunk.js"
},
diff --git a/examples/build-common.js b/examples/build-common.js
index bd3fc07ea..19de54f54 100644
--- a/examples/build-common.js
+++ b/examples/build-common.js
@@ -12,9 +12,9 @@ const async = require("async");
const extraArgs = "";
-const targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js -o js/output.js ";
+const targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js -o dist/output.js ";
const displayReasons = global.NO_REASONS ? "" : " --display-reasons --display-used-exports --display-provided-exports";
-const commonArgs = `--display-chunks --display-max-modules 99999 --display-origins --display-entrypoints --output-public-path "js/" ${extraArgs} ${targetArgs}`;
+const commonArgs = `--display-chunks --display-max-modules 99999 --display-origins --display-entrypoints --output-public-path "dist/" ${extraArgs} ${targetArgs}`;
let readme = fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8");
@@ -23,9 +23,9 @@ const doCompileAndReplace = (args, prefix, callback) => {
callback();
return;
}
- if(fs.existsSync("js"))
- for(const file of fs.readdirSync("js"))
- fs.unlinkSync(`js/${file}`);
+ if(fs.existsSync("dist"))
+ for(const file of fs.readdirSync("dist"))
+ fs.unlinkSync(`dist/${file}`);
cp.exec(`node ${path.resolve(__dirname, "../bin/webpack.js")} ${args} ${displayReasons} ${commonArgs}`, (error, stdout, stderr) => {
if(stderr)
console.log(stderr);
diff --git a/examples/chunkhash/README.md b/examples/chunkhash/README.md
index 4dcaf9898..d706fb632 100644
--- a/examples/chunkhash/README.md
+++ b/examples/chunkhash/README.md
@@ -36,7 +36,7 @@ module.exports = {
common: ["./vendor"] // optional
},
output: {
- path: path.join(__dirname, "js"),
+ path: path.join(__dirname, "dist"),
filename: "[name].[chunkhash].js",
chunkFilename: "[chunkhash].js"
},
@@ -63,19 +63,19 @@ module.exports = {
-
+
-
+