mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-21 14:55:04 +00:00
in this house we use tabs
This commit is contained in:
@@ -67,16 +67,16 @@ export default class WebpackResult implements CompileResult {
|
|||||||
css: {
|
css: {
|
||||||
main: extract_css(this.assets.main),
|
main: extract_css(this.assets.main),
|
||||||
chunks: manifest_data.components
|
chunks: manifest_data.components
|
||||||
.reduce((chunks: Record<string, string[]>, component: PageComponent) => {
|
.reduce((chunks: Record<string, string[]>, component: PageComponent) => {
|
||||||
const css_dependencies = [];
|
const css_dependencies = [];
|
||||||
const css = extract_css(this.assets[component.name]);
|
const css = extract_css(this.assets[component.name]);
|
||||||
|
|
||||||
if (css) css_dependencies.push(css);
|
if (css) css_dependencies.push(css);
|
||||||
|
|
||||||
chunks[component.file] = css_dependencies;
|
chunks[component.file] = css_dependencies;
|
||||||
|
|
||||||
return chunks;
|
return chunks;
|
||||||
}, {})
|
}, {})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user