diff options
| author | Julien Déramond <[email protected]> | 2023-03-28 16:02:37 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-28 17:02:37 +0300 |
| commit | c5fde53c8d87c73b13ac99891db4fa4047796338 (patch) | |
| tree | c34732b0f3384a5979c801cd32f059ad9e19d8bf | |
| parent | 34c2725fe1c59940d775054f374d7cb6836bf80f (diff) | |
| download | bootstrap-c5fde53c8d87c73b13ac99891db4fa4047796338.tar.xz bootstrap-c5fde53c8d87c73b13ac99891db4fa4047796338.zip | |
Docs: update Webpack guide (#38345)
* Docs: remove `<script>` from `index.html` in Webpack guide
* Add `mode=production` to `build` step in Webpack guide
| -rw-r--r-- | site/content/docs/5.3/getting-started/webpack.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/site/content/docs/5.3/getting-started/webpack.md b/site/content/docs/5.3/getting-started/webpack.md index ffad34e39..bd539b891 100644 --- a/site/content/docs/5.3/getting-started/webpack.md +++ b/site/content/docs/5.3/getting-started/webpack.md @@ -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" }, // ... |
