{"library":"rollup-plugin-bundle-fonts","title":"rollup-plugin-bundle-fonts","description":"A Rollup plugin that downloads HTTPS fonts referenced in CSS `url()` functions and copies them to a target directory, updating the URLs to relative paths. Current version 1.2.1, compatible with Rollup 3.0+ and Node.js LTS v16+. Unlike generic asset plugins, it specifically handles font downloading with optional download delays, include/exclude patterns, and automatic URL rewriting based on CSS bundle location. Does not clear the font directory between runs, only downloads missing fonts.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-bundle-fonts"],"cli":null},"imports":["import bundleFonts from 'rollup-plugin-bundle-fonts'","import bundleFonts from 'rollup-plugin-bundle-fonts'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import bundleFonts from 'rollup-plugin-bundle-fonts';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'es'\n  },\n  plugins: [\n    bundleFonts({\n      fontTargetDir: 'dist/fonts',\n      cssBundleDir: 'dist',\n      delay: 100\n    })\n  ]\n};","lang":"javascript","description":"Basic Rollup config using bundleFonts plugin with required options fontTargetDir and cssBundleDir, plus optional delay.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}