Skip to content

Commit de494cf

Browse files
committed
test: add an example of the custom plugin using the plugin hook to create a second css bundle, processed by rtlcss
1 parent 7c77d4f commit de494cf

13 files changed

Lines changed: 10045 additions & 242 deletions

File tree

package-lock.json

Lines changed: 9893 additions & 242 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
"@emotion/react": "^11.11.1",
126126
"@emotion/styled": "^11.11.0",
127127
"@mui/material": "^5.14.19",
128+
"@test/html-bundler-webpack-plugin": "file:./",
128129
"@test-fixtures/js": "0.0.2",
129130
"@test-fixtures/dius": "file:./test/fixtures/node_modules/dius/",
130131
"@test-fixtures/lorem": "file:./test/fixtures/node_modules/lorem/",
@@ -146,6 +147,7 @@
146147
"react": "^18.2.0",
147148
"react-dom": "^18.2.0",
148149
"responsive-loader": "^3.1.2",
150+
"rtlcss": "^4.1.1",
149151
"sass": "1.67.0",
150152
"sass-loader": "13.3.2",
151153
"sharp": "^0.32.6",
1.22 KB
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Test</title>
5+
<link href="style.97b286be.css" rel="stylesheet" /><link href="style.97b286be.rtl.css" rel="stylesheet" />
6+
<script src="main.5317c1f6.js" defer="defer"></script>
7+
</head>
8+
<body>
9+
<h1>Hello World!</h1>
10+
<img src="img/image.697ef306.png" alt="picture">
11+
</body>
12+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log(">> main");
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
body {
2+
background-image: url(img/image.697ef306.png);
3+
direction: ltr;
4+
}
5+
6+
h1 {
7+
color: red;
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
body {
2+
background-image: url(img/image.697ef306.png);
3+
direction: rtl;
4+
}
5+
6+
h1 {
7+
color: red;
8+
}
1.22 KB
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Test</title>
5+
<link href="./style.css" rel="stylesheet" />
6+
<script src="./main.js" defer="defer"></script>
7+
</head>
8+
<body>
9+
<h1>Hello World!</h1>
10+
<img src="./image.png" alt="picture">
11+
</body>
12+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('>> main');

0 commit comments

Comments
 (0)