Make example work with webpack v5.69.1

This commit is contained in:
Stephan Hoyer 2022-03-01 07:45:10 +01:00
parent 99d1b3270d
commit 69f5cbdf64

View file

@ -60,7 +60,7 @@ $ npm install webpack webpack-cli --save-dev
{
"...": "...",
"scripts": {
"start": "webpack src/index.js --output bin/app.js -d --watch"
"start": "webpack ./src/index.js --output-path ./bin --watch"
}
}
```
@ -75,7 +75,7 @@ m.render(document.body, "hello world");
```html
<!DOCTYPE html>
<body>
<script src="bin/app.js"></script>
<script src="bin/main.js"></script>
</body>
```