From a1752fc9cd88db32670da4e3e7c2ceb6da419a37 Mon Sep 17 00:00:00 2001 From: Erin Date: Fri, 28 Jul 2023 05:18:57 -0400 Subject: [PATCH] clean up asset handling --- index.mjs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/index.mjs b/index.mjs index 92848e4..e8ba62c 100644 --- a/index.mjs +++ b/index.mjs @@ -128,15 +128,7 @@ export function buildConfig ({ plugins: [ { buildStart () { - styles.forEach(absolutePath => { - this.emitFile({ - type: 'asset', - fileName: getOutputFilename(absolutePath, 'css'), - source: readFileSync(absolutePath, {encoding: 'utf-8'}), - }); - }); - assets.forEach(absolutePath => { - // console.log('rendering binary file', absolutePath); + [...styles, ...assets].forEach(absolutePath => { this.emitFile({ type: 'asset', fileName: getOutputFilename(absolutePath), @@ -145,14 +137,13 @@ export function buildConfig ({ }); }, load (id) { - // console.log(id); if (id === manifestPath) { + // throwaway contents, replaced later return 'debugger;'; } return null; }, renderChunk (code, chunk) { - // console.log(chunk); if (chunk.facadeModuleId !== manifestPath) { return null; }