Skip to content

Commit bd24541

Browse files
committed
Feat: Ability to disable extract async modules
CI Fix
1 parent def7c84 commit bd24541

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

test/cases/disable-async-bool/expected/main.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.shared {
2-
background: pink;
2+
background: pink;
33
}
4+
45
body {
56
background: red;
67
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.async-import {
2-
background: black;
2+
background: black;
33
}
4+
45
.in-async-2 {
56
background: green;
67
}
78

89
.both-page-async {
9-
color: cyan;
10+
color: cyan;
1011
}
1112

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.both-page-async {
2-
color: cyan;
2+
color: cyan;
33
}
44

test/cases/disable-async-func/expected/index1-1d6bfe20d478126e4887.css renamed to test/cases/disable-async-func/expected/index1.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.shared {
2-
background: pink;
2+
background: pink;
33
}
4+
45
body {
56
background: red;
67
}

test/cases/disable-async-func/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
},
1616
plugins: [
1717
new Self({
18-
filename: '[name]-[contenthash].css',
18+
filename: '[name].css',
1919
disableAsync({ module }) {
2020
let ret = false;
2121
if (

0 commit comments

Comments
 (0)