webpack/test/configCases/css/basic/test.config.js

12 lines
302 B
JavaScript
Raw Normal View History

2021-12-01 16:50:13 +08:00
module.exports = {
2024-11-16 01:54:46 +08:00
findBundle: function (i, options) {
return ["style2_css.bundle0.js", "bundle0.js"];
},
2021-12-01 16:50:13 +08:00
moduleScope(scope) {
const link = scope.window.document.createElement("link");
link.rel = "stylesheet";
2021-12-17 19:18:01 +08:00
link.href = "bundle0.css";
2021-12-01 16:50:13 +08:00
scope.window.document.head.appendChild(link);
}
};