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