Skip to content
Snippets Groups Projects
Commit 20615400 authored by Nick Fitzgerald's avatar Nick Fitzgerald
Browse files

Ensure that `index.html` is bundled into `dist`

This is necessary for our "Production and Deployment" chapter of the book.
parent 7dcd3fe1
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
"hello-wasm-pack": "^0.1.0", "hello-wasm-pack": "^0.1.0",
"webpack": "^4.16.3", "webpack": "^4.16.3",
"webpack-cli": "^3.1.0", "webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5" "webpack-dev-server": "^3.1.5",
"copy-webpack-plugin": "^4.5.2"
} }
} }
\ No newline at end of file
const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require('path'); const path = require('path');
module.exports = { module.exports = {
...@@ -7,4 +8,7 @@ module.exports = { ...@@ -7,4 +8,7 @@ module.exports = {
filename: "bootstrap.js", filename: "bootstrap.js",
}, },
mode: "development", mode: "development",
plugins: [
new CopyWebpackPlugin(['index.html'])
],
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment