Skip to content

Commit e13e8e4

Browse files
committed
Updates
1 parent ea7b5c7 commit e13e8e4

13 files changed

+11484
-195
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,10 @@ updates:
8484
schedule:
8585
interval: monthly
8686
versioning-strategy: increase
87+
- package-ecosystem: npm
88+
directory: "/webpack-2"
89+
labels:
90+
- dependencies
91+
schedule:
92+
interval: monthly
93+
versioning-strategy: increase

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- "vite"
3737
- "vue"
3838
- "webpack"
39+
- "webpack-2"
3940

4041
steps:
4142
- name: Clone repository

webpack-2/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
/node_modules/
3+
/dist/

webpack-2/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lockfile-version=2

webpack-2/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Include [Bootstrap](https://getbootstrap.com)'s source Sass and individual JavaS
44

55
## Edit in browser
66

7-
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/twbs/examples/tree/main/webpack-2?file=index.html)
7+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/twbs/examples/tree/main/webpack?file=src%2Findex.html)
88

99
## How to use
1010

webpack-2/index.html

+63-76
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,74 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<title>Bootstrap Webpack 2</title>
7-
<link rel="stylesheet" href="dist/css/main.css"/>
8-
</head>
9-
<body>
10-
<div class="container py-4 px-3 mx-auto">
11-
<header class="d-flex justify-content-between align-items-md-center pb-3 mb-5 border-bottom">
12-
<h1 class="h4">
13-
<a href="/" class="d-flex align-items-center text-dark text-decoration-none">
14-
<img class="d-inline-block me-2" width="40" height="32"
15-
src="https://raw.githubusercontent.com/twbs/bootstrap/main/site/static/docs/5.2/assets/brand/bootstrap-logo-black.svg"
16-
alt="Bootstrap">
17-
<span>Webpack</span>
18-
</a>
19-
</h1>
20-
<a href="https://github.com/twbs/examples/tree/main/webpack-2/" target="_blank" rel="noopener">View on
21-
GitHub</a>
22-
</header>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Bootstrap w/ Webpack 2</title>
7+
<link rel="stylesheet" href="dist/css/main.css">
8+
</head>
9+
<body>
10+
<div class="container py-4 px-3 mx-auto">
11+
<header class="d-flex justify-content-between align-items-md-center pb-3 mb-5 border-bottom">
12+
<h1 class="h4">
13+
<a href="/" class="d-flex align-items-center text-dark text-decoration-none">
14+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" class="bi bi-bootstrap-fill d-inline-block me-2" viewBox="0 0 16 16">
15+
<path d="M6.375 7.125V4.658h1.78c.973 0 1.542.457 1.542 1.237 0 .802-.604 1.23-1.764 1.23H6.375zm0 3.762h1.898c1.184 0 1.81-.48 1.81-1.377 0-.885-.65-1.348-1.886-1.348H6.375v2.725z"/>
16+
<path d="M4.002 0a4 4 0 0 0-4 4v8a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4h-8zm1.06 12V3.545h3.399c1.587 0 2.543.809 2.543 2.11 0 .884-.65 1.675-1.483 1.816v.1c1.143.117 1.904.931 1.904 2.033 0 1.488-1.084 2.396-2.888 2.396H5.062z"/>
17+
</svg>
18+
<span>Webpack</span>
19+
</a>
20+
</h1>
21+
<a href="https://github.com/twbs/examples/tree/main/webpack-2/" target="_blank" rel="noopener">View on GitHub</a>
22+
</header>
2323

24-
<h1>Build Bootstrap with Webpack</h1>
25-
<div class="col-lg-8 px-0">
26-
<p class="fs-4">You've successfully loaded the Bootstrap + Webpack example! It's loaded up with <a
27-
href="https://getbootstrap.com/">Bootstrap 5</a> and uses Webpack to compile and bundle our Sass and
28-
JavaScript. It also includes Autoprefixer.</p>
29-
<p>If this button appears blue and the link appears purple, you've done it!</p>
30-
</div>
24+
<h1>Build Bootstrap with Webpack</h1>
25+
<div class="col-lg-8 px-0">
26+
<p class="fs-4">You've successfully loaded the Bootstrap + Webpack example! It's loaded up with <a href="https://getbootstrap.com/">Bootstrap 5</a> and uses Webpack to compile and bundle our Sass and JavaScript. It also includes Autoprefixer.</p>
27+
<p>If this button appears blue and the link appears purple, you've done it!</p>
28+
</div>
3129

32-
<button type="button" class="btn btn-primary me-3" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample">
33-
Toggle offcanvas
34-
</button>
35-
<a id="popoverButton" class="text-success" href="#" role="button" data-bs-toggle="popover" title="Custom popover"
36-
data-bs-content="This is a Bootstrap popover.">Example popover</a>
37-
38-
<div class="alert alert-success alert-dismissible fade mt-5" role="alert">
39-
<strong>You just,</strong> dynamically imported alert.js.
40-
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
41-
</div>
42-
43-
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
44-
<div class="offcanvas-header">
45-
<h5 class="offcanvas-title" id="offcanvasExampleLabel">Offcanvas</h5>
46-
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
47-
</div>
48-
<div class="offcanvas-body">
49-
<div>
50-
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images,
51-
lists, etc.
52-
</div>
53-
<div class="dropdown mt-3">
54-
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton"
55-
data-bs-toggle="dropdown">
56-
Dropdown button
57-
</button>
58-
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
59-
<li><a class="dropdown-item" href="#">Action</a></li>
60-
<li><a class="dropdown-item" href="#">Another action</a></li>
61-
<li><a class="dropdown-item" href="#">Something else here</a></li>
62-
</ul>
63-
</div>
64-
</div>
65-
</div>
30+
<button type="button" class="btn btn-primary me-3" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample">Toggle offcanvas</button>
31+
<a id="popoverButton" class="text-success" href="#" role="button" data-bs-toggle="popover" title="Custom popover" data-bs-content="This is a Bootstrap popover.">Example popover</a>
6632

67-
<hr class="col-1 my-5 mx-0">
68-
69-
<h2>Guides</h2>
70-
<p>Read more detailed instructions and documentation on using or contributing to Bootstrap.</p>
71-
<ul class="icon-list">
72-
<li><a href="https://getbootstrap.com/docs/5.1/getting-started/introduction/">Bootstrap quick start guide</a>
73-
</li>
74-
<li><a href="https://getbootstrap.com/docs/5.1/getting-started/webpack/">Bootstrap Webpack guide</a></li>
75-
<li><a href="https://getbootstrap.com/docs/5.1/getting-started/parcel/">Bootstrap Parcel guide</a></li>
76-
<li><a href="https://getbootstrap.com/docs/5.1/getting-started/build-tools/">Contributing to Bootstrap</a></li>
33+
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
34+
<div class="offcanvas-header">
35+
<h5 class="offcanvas-title" id="offcanvasExampleLabel">Offcanvas</h5>
36+
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
37+
</div>
38+
<div class="offcanvas-body">
39+
<div>
40+
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
41+
</div>
42+
<div class="dropdown mt-3">
43+
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown">
44+
Dropdown button
45+
</button>
46+
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
47+
<li><a class="dropdown-item" href="#">Action</a></li>
48+
<li><a class="dropdown-item" href="#">Another action</a></li>
49+
<li><a class="dropdown-item" href="#">Something else here</a></li>
7750
</ul>
51+
</div>
52+
</div>
53+
</div>
7854

79-
<hr class="mt-5 mb-4">
55+
<hr class="col-1 my-5 mx-0">
8056

81-
<p class="text-muted">Created and open sourced by the Bootstrap team. Licensed MIT.</p>
82-
</div>
57+
<h2>Guides</h2>
58+
<p>Read more detailed instructions and documentation on using or contributing to Bootstrap.</p>
59+
<ul class="icon-list">
60+
<li><a href="https://getbootstrap.com/docs/5.3/getting-started/introduction/">Bootstrap quick start guide</a></li>
61+
<li><a href="https://getbootstrap.com/docs/5.3/getting-started/webpack/">Bootstrap Webpack guide</a></li>
62+
<li><a href="https://getbootstrap.com/docs/5.3/getting-started/parcel/">Bootstrap Parcel guide</a></li>
63+
<li><a href="https://getbootstrap.com/docs/5.3/getting-started/vite/">Bootstrap Vite guide</a></li>
64+
<li><a href="https://getbootstrap.com/docs/5.3/getting-started/build-tools/">Contributing to Bootstrap</a></li>
65+
</ul>
66+
67+
<hr class="mt-5 mb-4">
8368

69+
<p class="text-muted">Created and open sourced by the Bootstrap team. Licensed MIT.</p>
70+
</div>
8471

85-
<script src="dist/js/main.js"></script>
86-
</body>
72+
<script src="dist/js/main.js"></script>
73+
</body>
8774
</html>

0 commit comments

Comments
 (0)