Skip to content

Commit

Permalink
test: more (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Sep 4, 2021
1 parent 355f729 commit c377aed
Show file tree
Hide file tree
Showing 18 changed files with 529 additions and 761 deletions.
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()],
};

0 comments on commit c377aed

Please sign in to comment.