diff --git a/LICENSE b/LICENSE index d47cea5..56ef45b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Anthony Fu +Copyright (c) 2021 Waset Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a005c0c..365b8f8 100644 --- a/README.md +++ b/README.md @@ -4,132 +4,8 @@ Iconify template for [unplugin](https://github.com/unjs/unplugin). -## Template Usage - -To use this template, clone it down using: - -```bash -npx degit unplugin/unplugin-iconify my-unplugin -``` - -And do a global replacement of `unplugin-iconify` with your plugin name. - -Then you can start developing your unplugin 🔥 - -To test your plugin, run: `pnpm run dev` -To release a new version, run: `pnpm run release` - ## Install ```bash -npm i unplugin-iconify +npm i -D unplugin-iconify ``` - -
-Vite
- -```ts -// vite.config.ts -import Iconify from 'unplugin-iconify/vite' - -export default defineConfig({ - plugins: [ - Iconify({ - /* options */ - }), - ], -}) -``` - -Example: [`playground/`](./playground/) - -
- -
-Rollup
- -```ts -// rollup.config.js -import Iconify from 'unplugin-iconify/rollup' - -export default { - plugins: [ - Iconify({ - /* options */ - }), - ], -} -``` - -
- -
-Webpack
- -```ts -// webpack.config.js -module.exports = { - /* ... */ - plugins: [ - require('unplugin-iconify/webpack')({ - /* options */ - }), - ], -} -``` - -
- -
-Nuxt
- -```ts -// nuxt.config.js -export default defineNuxtConfig({ - modules: [ - [ - 'unplugin-iconify/nuxt', - { - /* options */ - }, - ], - ], -}) -``` - -> This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite) - -
- -
-Vue CLI
- -```ts -// vue.config.js -module.exports = { - configureWebpack: { - plugins: [ - require('unplugin-iconify/webpack')({ - /* options */ - }), - ], - }, -} -``` - -
- -
-esbuild
- -```ts -// esbuild.config.js -import { build } from 'esbuild' -import Iconify from 'unplugin-iconify/esbuild' - -build({ - plugins: [Iconify()], -}) -``` - -