unplugin-svg-solid2comp
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

unplugin-svg2solidcomp

NPM version

svg2solidcomp template for unplugin.

Install

npm i unplugin-svg2solidcomp
Vite
// vite.config.ts
import svg2solidcomp from 'unplugin-svg2solidcomp/vite'

export default defineConfig({
  plugins: [
    svg2solidcomp({
      /* options */
    }),
  ],
})

Example: playground/


Rollup
// rollup.config.js
import svg2solidcomp from 'unplugin-svg2solidcomp/rollup'

export default {
  plugins: [
    svg2solidcomp({
      /* options */
    }),
  ],
}


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-svg2solidcomp/webpack')({
      /* options */
    }),
  ],
}


Vue CLI
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-svg2solidcomp/webpack')({
        /* options */
      }),
    ],
  },
}


esbuild
// esbuild.config.js
import { build } from 'esbuild'
import svg2solidcomp from 'unplugin-svg2solidcomp/esbuild'

build({
  plugins: [svg2solidcomp()],
})


Dependents (0)

Package Sidebar

Install

npm i unplugin-svg-solid2comp

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

24.6 kB

Total Files

25

Last publish

Collaborators

  • sooniter