unplugin-todos
v0.2.2
Published
[![NPM version](https://img.shields.io/npm/v/unplugin-todos)](https://www.npmjs.com/package/unplugin-todos)
Downloads
4
Maintainers
Readme
unplugin-todos
📋 A universal bundler plugin for generate a task schedule from code comments, powered by unplugin.
Features
🌓 Friendly todo list with light / dark mode.
📝 Dynamic generation from code comments.
🏷 Support tag filters.
🖊️ Enable to change the comment tags on ui.
📦 Support common bundlers.
Installation
# npm
npm i -D unplugin-todos
Usage
// vite.config.ts
import Todos from 'unplugin-todos'
export default defineConfig({
plugins: [Todos.vite()],
})
// rollup.config.js
import Todos from 'unplugin-todos'
export default {
plugins: [Todos.rollup()],
}
// esbuild.config.js
import { build } from 'esbuild'
build({
plugins: [require('unplugin-todos').esbuild()],
})
// webpack.config.js
module.exports = {
/* ... */
plugins: [require('unplugin-todos').webpack()],
}
Playground
See playground
Options
options.dev
- Type:
boolean
- Default:
true
options.includes
- Type:
string[]
- Default:
[]