Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
test: more
  • Loading branch information
alexander-akait committed Sep 4, 2021
commit 5fb858c55ecfe6e4b9c811b024c3bd82b16a0113
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,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()],
};