Skip to content

Setup other

We're using unplugin, so you can use any plugin that it supports.

Webpack

typescript
const svg = require('@neodx/svg/webpack');

modul.exports = {
  plugins: [
    svg({
      root: 'assets',
      output: 'public'
    })
  ]
};

Rollup

typescript
import svg from '@neodx/svg/rollup';

export default {
  plugins: [
    svg({
      root: 'assets',
      output: 'public'
    })
  ]
};

ESBuild

typescript
import { build } from 'esbuild';
import svg from '@neodx/svg/esbuild';

build({
  plugins: [
    svg({
      root: 'assets',
      output: 'public'
    })
  ]
});

RSPack

typescript
const svg = require('@neodx/svg/rspack');

modul.exports = {
  plugins: [
    svg({
      root: 'assets',
      output: 'public'
    })
  ]
};

Released under the MIT License.