mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-21 06:45:00 +00:00
extract entry css correctly
This commit is contained in:
@@ -153,7 +153,7 @@ export default function extract_css(client_result: CompileResult, components: Pa
|
|||||||
chunks_with_css.add(chunk);
|
chunks_with_css.add(chunk);
|
||||||
});
|
});
|
||||||
|
|
||||||
const entry = path.resolve(dirs.src, 'app.mjs');
|
const entry = path.resolve(dirs.src, 'client.js');
|
||||||
const entry_chunk = client_result.chunks.find(chunk => chunk.modules.indexOf(entry) !== -1);
|
const entry_chunk = client_result.chunks.find(chunk => chunk.modules.indexOf(entry) !== -1);
|
||||||
|
|
||||||
const entry_chunk_dependencies: Set<Chunk> = new Set([entry_chunk]);
|
const entry_chunk_dependencies: Set<Chunk> = new Set([entry_chunk]);
|
||||||
|
|||||||
Reference in New Issue
Block a user