{"library":"rollup-plugin-htaccess","title":"rollup-plugin-htaccess","description":"A Rollup/Rolldown/Vite plugin that generates .htaccess files during the build process. Current stable version is 0.13.1. Supports Apache directives with type-safe configuration via TypeScript types. The plugin integrates with Rollup (v3.29.4+), Rolldown (v1.0.0-rc7+), and Vite (v4.5.14+). Key differentiators: no runtime dependencies, comprehensive directive support, and native ESM/CJS compatibility. Requires Node >= 20. Released on npm with monthly updates.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-htaccess"],"cli":null},"imports":["import htaccess from 'rollup-plugin-htaccess'","import { HTAccessOptions } from 'rollup-plugin-htaccess'","import { DirectiveSet } from 'rollup-plugin-htaccess'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import htaccess from 'rollup-plugin-htaccess';\n\nexport default {\n  input: 'src/index.js',\n  output: { dir: 'dist', format: 'es' },\n  plugins: [\n    htaccess({\n      redirects: [\n        { from: '/old-path', to: '/new-path', type: 301 },\n        { from: '/temporary', to: '/elsewhere', type: 302 }\n      ],\n      security: {\n        disableDirectoryBrowsing: true,\n        blockAccessToHiddenFiles: true\n      },\n      performance: {\n        enableCompression: true,\n        setExpires: { 'image/png': '1 month', 'text/css': '1 week' }\n      }\n    })\n  ]\n};","lang":"typescript","description":"Example Rollup configuration using htaccess plugin to generate .htaccess with redirects, security, and caching rules.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}