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),