Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,196 changes: 440 additions & 756 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.HwLaWYab_FINAuqviT6T {
background: red;
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

.Z_E0RPEyV1Psn6SZX9qd {
.HwLaWYab_FINAuqviT6T {
background: green;
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.class_a {
background: red;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import "./common.css";
import "./a.css";

import(/* webpackChunkName: "comp1" */ "./components/comp1");
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.class_b {
background: red;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import "./common.css";
import "./b.css";

import(/* webpackChunkName: "comp2" */ "./components/comp2");
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.common {
background: red;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
background-color: yellow;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./comp1.css";
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
background-color: green;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./comp2.css";
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
background-color: yellow;
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
background-color: green;
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.common {
background: red;
}

.class_a {
background: red;
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.common {
background: red;
}

.class_b {
background: red;
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import Self from "../../../src";

module.exports = {
entry: {
a: "./a.js",
b: "./b.js",
},
module: {
rules: [
{
test: /\.css$/,
use: [Self.loader, "css-loader"],
},
],
},
optimization: {
splitChunks: {
cacheGroups: {
aStyles: {
type: "css/mini-extract",
name: "styles_a",
chunks: (chunk) => chunk.name === "a",
enforce: true,
},
bStyles: {
type: "css/mini-extract",
name: "styles_b",
chunks: (chunk) => chunk.name === "b",
enforce: true,
},
},
},
},
plugins: [new Self()],
};