From f8c68847ca65d1c8e1b5b111c0798e18a6329c84 Mon Sep 17 00:00:00 2001 From: Erin Date: Fri, 28 Jul 2023 05:19:49 -0400 Subject: [PATCH] just treat styles as assets tbh --- index.mjs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.mjs b/index.mjs index e8ba62c..f5130ad 100644 --- a/index.mjs +++ b/index.mjs @@ -100,12 +100,14 @@ export function buildConfig ({ return { scripts: scriptEntrypointAbsolutePaths, - styles: styleEntrypointAbsolutePathss, - assets: otherAssetAbsolutePaths, + assets: [ + ...styleEntrypointAbsolutePathss, + ...otherAssetAbsolutePaths, + ], }; } - const {scripts, styles, assets} = getEntryPointsFromManifest(manifestContent); + const {scripts, assets} = getEntryPointsFromManifest(manifestContent); return [ ...scripts.map(entrypointPath => ({ @@ -128,7 +130,7 @@ export function buildConfig ({ plugins: [ { buildStart () { - [...styles, ...assets].forEach(absolutePath => { + assets.forEach(absolutePath => { this.emitFile({ type: 'asset', fileName: getOutputFilename(absolutePath),