just treat styles as assets tbh

This commit is contained in:
Erin 2023-07-28 05:19:49 -04:00
parent a1752fc9cd
commit f8c68847ca

View file

@ -100,12 +100,14 @@ export function buildConfig ({
return { return {
scripts: scriptEntrypointAbsolutePaths, scripts: scriptEntrypointAbsolutePaths,
styles: styleEntrypointAbsolutePathss, assets: [
assets: otherAssetAbsolutePaths, ...styleEntrypointAbsolutePathss,
...otherAssetAbsolutePaths,
],
}; };
} }
const {scripts, styles, assets} = getEntryPointsFromManifest(manifestContent); const {scripts, assets} = getEntryPointsFromManifest(manifestContent);
return [ return [
...scripts.map(entrypointPath => ({ ...scripts.map(entrypointPath => ({
@ -128,7 +130,7 @@ export function buildConfig ({
plugins: [ plugins: [
{ {
buildStart () { buildStart () {
[...styles, ...assets].forEach(absolutePath => { assets.forEach(absolutePath => {
this.emitFile({ this.emitFile({
type: 'asset', type: 'asset',
fileName: getOutputFilename(absolutePath), fileName: getOutputFilename(absolutePath),