just treat styles as assets tbh
This commit is contained in:
parent
a1752fc9cd
commit
f8c68847ca
10
index.mjs
10
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),
|
||||
|
|
Loading…
Reference in a new issue