0.2.2 ⢠Published 2 years ago
unplugin-todos v0.2.2
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-todosUsage
// 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:
[]