]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: update Webpack guide (#38345)
authorJulien Déramond <juderamond@gmail.com>
Tue, 28 Mar 2023 14:02:37 +0000 (16:02 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2023 14:02:37 +0000 (17:02 +0300)
* Docs: remove `<script>` from `index.html` in Webpack guide

* Add `mode=production` to `build` step in Webpack guide

site/content/docs/5.3/getting-started/webpack.md

index ffad34e395db3676bf88f70db03e8314c4fe6f6d..bd539b89155180ae5ca7fa6850a3d7518a6da9c6 100644 (file)
@@ -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"
      },
      // ...