mirror of https://github.com/webpack/webpack.git
test: fix
This commit is contained in:
parent
71ea450287
commit
2c00999301
|
@ -52,7 +52,7 @@ module.exports = {
|
||||||
"B-2Index": "0: ./B-2.js",
|
"B-2Index": "0: ./B-2.js",
|
||||||
BIndex: "0: ./B.js",
|
BIndex: "0: ./B.js",
|
||||||
mainIndex: "0: ./main.js",
|
mainIndex: "0: ./main.js",
|
||||||
sharedIndex: "0: ./shared.js, 1: css ./m.css, 2: css ./n.css"
|
sharedIndex: "1: css ./m.css"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,7 +44,7 @@ module.exports = {
|
||||||
data[`${name}Index`] = text;
|
data[`${name}Index`] = text;
|
||||||
}
|
}
|
||||||
expect(data).toEqual({
|
expect(data).toEqual({
|
||||||
dynamicIndex: "0: css ./a.css, 1: css ./b.css, 2: ./dynamic.js",
|
dynamicIndex: "0: css ./a.css",
|
||||||
mainIndex: "0: ./index.js"
|
mainIndex: "0: ./index.js"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -15,5 +15,8 @@ it("should allow to create css modules", done => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should allow to process tailwind as global css", done => {
|
it("should allow to process tailwind as global css", done => {
|
||||||
|
prod
|
||||||
|
? __non_webpack_require__("./382.bundle1.js")
|
||||||
|
: __non_webpack_require__("./tailwind_min_css.bundle0.js");
|
||||||
import("./tailwind.min.css").then(() => done(), done);
|
import("./tailwind.min.css").then(() => done(), done);
|
||||||
});
|
});
|
||||||
|
|
|
@ -25,6 +25,6 @@ module.exports = {
|
||||||
throw new Error("The `pathinfo` option doesn't work.");
|
throw new Error("The `pathinfo` option doesn't work.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return "./bundle0.js";
|
return ["./style2_css.bundle0.js", "./bundle0.js"];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
it("should allow to dynamic import a css module", done => {
|
it("should allow to dynamic import a css module", done => {
|
||||||
|
__non_webpack_require__("./style_module_css.bundle0.js");
|
||||||
import("./style.module.css").then(x => {
|
import("./style.module.css").then(x => {
|
||||||
try {
|
try {
|
||||||
expect(x).toEqual(
|
expect(x).toEqual(
|
||||||
|
|
Loading…
Reference in New Issue