Skip to content

Commit 331ca1a

Browse files
authored
build: restore vendor.css (@fehmer) (monkeytypegame#7235)
1 parent b1aa14c commit 331ca1a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function getPlugins({
190190
UnpluginInjectPreload({
191191
files: [
192192
{
193-
outputMatch: /css\/vendor.*\.css$/,
193+
outputMatch: /css\/.*\.css$/,
194194
attributes: {
195195
as: "style",
196196
type: "text/css",
@@ -246,6 +246,10 @@ function getBuildOptions({
246246
if (/\.(woff|woff2|eot|ttf|otf)$/.test(assetInfo.name)) {
247247
return `webfonts/[name]-[hash].${extType}`;
248248
}
249+
if (assetInfo.name === "misc.css") {
250+
return `${extType}/vendor.[hash][extname]`;
251+
}
252+
249253
return `${extType}/[name].[hash][extname]`;
250254
},
251255
chunkFileNames: "js/[name].[hash].js",

0 commit comments

Comments
 (0)