Skip to content

Commit

Permalink
chore: fix vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernankez committed Aug 14, 2024
1 parent 164c267 commit 2f82a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Inspect from "vite-plugin-inspect";
import FontCarrier from "vite-plugin-font-carrier";

export default defineConfig(() => {
const fontCarrier = FontCarrier({
const createFontCarrier = () => FontCarrier({
fonts: [
{
path: "./src/assets/biantaoti.woff",
Expand All @@ -23,12 +23,12 @@ export default defineConfig(() => {

return {
plugins: [
fontCarrier,
createFontCarrier(),
Inspect(),
],
worker: {
plugins: () => [
fontCarrier,
createFontCarrier(),
],
},
resolve: {
Expand Down

0 comments on commit 2f82a33

Please sign in to comment.