Giter VIP home page Giter VIP logo

rollup-plugin-fontmin's Introduction

Nice to meet you ๐Ÿ‘‹

logo

๐Ÿค”๏ธ ๏ธI'm the author of shuimo design.

rollup-plugin-fontmin's People

Contributors

higuaifan avatar

Stargazers

 avatar

Watchers

 avatar

rollup-plugin-fontmin's Issues

vitejs + vue + typescript

Dear higuaifan,
First thank you for your shared work.
I recently move from vue-cli to vite and I need to minify my fonts. I saw your rollup plugin and try it.

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import RollupPluginFontmin from '@higuaifan/rollup-plugin-fontmin'

export default defineConfig({
  plugins: [vue(),
  RollupPluginFontmin({
    fontSrc: 'dist/assets/*.ttf',
    fontDest: 'dist/assets',
  })]
})

But I always get the same error that RollupPluginFontmin is not a function even if I saw that it is a function !

failed to load config from /tmp/path/vite.config.js
error when starting dev server:
TypeError: RollupPluginFontmin is not a function
    at file:///tmp/path/vite.config.js.timestamp-1662032643422.mjs:8:5
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
    at async loadConfigFromBundledFile (file:///tmp/path/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:63077:21)
    at async loadConfigFromFile (file:///tmp/path/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:62963:28)
    at async resolveConfig (file:///tmp/path/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:62577:28)
    at async createServer (file:///tmp/path/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:59183:20)
    at async CAC.<anonymous> (file:///tmp/path/node_modules/vite/dist/node/cli.js:699:24)

You can check my test repo (branch RollupPluginFontmin) at https://github.com/lesailesdumontblanc-com/lesailesdumontblanc/tree/RollupPluginFontmin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.