0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-03 15:24:19 +01: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:
Julien Déramond 2023-03-28 16:02:37 +02:00 committed by GitHub
parent 34c2725fe1
commit c5fde53c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,6 @@ With dependencies installed and our project folder ready for us to start coding,
<h1>Hello, Bootstrap and Webpack!</h1> <h1>Hello, Bootstrap and Webpack!</h1>
<button class="btn btn-primary">Primary button</button> <button class="btn btn-primary">Primary button</button>
</div> </div>
<script src="./main.js"></script>
</body> </body>
</html> </html>
``` ```
@ -129,7 +128,7 @@ With dependencies installed and our project folder ready for us to start coding,
// ... // ...
"scripts": { "scripts": {
"start": "webpack serve", "start": "webpack serve",
"build": "webpack build", "build": "webpack build --mode=production",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
// ... // ...