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 {
|
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),
|
||||||
|
|
Loading…
Reference in a new issue