Skip to content

Commit 776a0d6

Browse files
test: public path (#857)
1 parent be7269d commit 776a0d6

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
body {
2+
background: red;
3+
background-image: url(/c9e192c015437a21dea1.svg);
4+
}
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "./style.css";
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
body {
2+
background: red;
3+
background-image: url(./react.svg);
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import Self from "../../../src";
2+
3+
module.exports = {
4+
entry: "./index.js",
5+
module: {
6+
rules: [
7+
{
8+
test: /\.css$/,
9+
use: [
10+
{
11+
loader: Self.loader,
12+
options: {
13+
publicPath: "/",
14+
},
15+
},
16+
"css-loader",
17+
],
18+
},
19+
],
20+
},
21+
plugins: [
22+
new Self({
23+
filename: "[name].css",
24+
}),
25+
],
26+
};

0 commit comments

Comments
 (0)