Skip to content

Commit 928b8ec

Browse files
committed
Fix for asset inline limit issue
1 parent 3583f8d commit 928b8ec

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,5 @@ dist
128128
.yarn/build-state.yml
129129
.yarn/install-state.gz
130130
.pnp.*
131-
/dist
131+
/dist
132+
.history

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-icons-spritesheet",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Vite plugin that generates a spritesheet and types out of your icons folder.",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export const iconsSpritesheet: (args: PluginProps | PluginProps[]) => any = (may
337337

338338
config.build.assetsInlineLimit = (name, content) => {
339339
const isSpriteSheet = allSpriteSheetNames.some((spriteSheetName) => {
340-
return name === normalizePath(`${workDir}/${outputDir}/${spriteSheetName}`);
340+
return name.endsWith(normalizePath(`${outputDir}/${spriteSheetName}`));
341341
});
342342
// Our spritesheet? Early return
343343
if (isSpriteSheet) {

0 commit comments

Comments
 (0)