fix: ALL of them
This commit is contained in:
parent
677bc593cc
commit
4c72fc0285
|
@ -62,14 +62,17 @@ module.exports = (async () => {
|
||||||
));
|
));
|
||||||
if (styleChunk) {
|
if (styleChunk) {
|
||||||
const modules = styleChunk.getModules();
|
const modules = styleChunk.getModules();
|
||||||
const styleModule = modules.find((module) => 'css/mini-extract' === module.type);
|
|
||||||
const styleFileHref = join(
|
const styleFileHref = join(
|
||||||
compilation.options.output.publicPath,
|
compilation.options.output.publicPath,
|
||||||
styleChunk.files.find((file) => file.match(/\.css$/)),
|
styleChunk.files.find((file) => file.match(/\.css$/)),
|
||||||
);
|
);
|
||||||
styleFile = {
|
styleFile = {
|
||||||
href: styleFileHref,
|
href: styleFileHref,
|
||||||
content: styleModule.content,
|
content: (
|
||||||
|
modules
|
||||||
|
.filter((module) => 'css/mini-extract' === module.type)
|
||||||
|
.map(({content}) => content).join('\n')
|
||||||
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user