mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-17 05:00:24 +00:00
Docs: update Webpack guide (#38345)
* Docs: remove `<script>` from `index.html` in Webpack guide * Add `mode=production` to `build` step in Webpack guide
This commit is contained in:
parent
34c2725fe1
commit
c5fde53c8d
1 changed files with 1 additions and 2 deletions
|
|
@ -115,7 +115,6 @@ With dependencies installed and our project folder ready for us to start coding,
|
|||
<h1>Hello, Bootstrap and Webpack!</h1>
|
||||
<button class="btn btn-primary">Primary button</button>
|
||||
</div>
|
||||
<script src="./main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
|
@ -129,7 +128,7 @@ With dependencies installed and our project folder ready for us to start coding,
|
|||
// ...
|
||||
"scripts": {
|
||||
"start": "webpack serve",
|
||||
"build": "webpack build",
|
||||
"build": "webpack build --mode=production",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
// ...
|
||||
|
|
|
|||
Loading…
Reference in a new issue