fabiospampinato / worktank-vite-plugin

Vite plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WorkTank Vite Plugin

Vite plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.

Install

npm install --save worktank-vite-plugin

Usage

For more information read this.

import {defineConfig} from 'vite';
import worktank from 'worktank-vite-plugin';

export default defineConfig ({
  plugins: [
    worktank ({
      filter: /\.worker\.(js|ts)$/ // Files matching this regex will be processed
    })
  ]
});

License

MIT © Fabio Spampinato

About

Vite plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.

License:MIT License


Languages

Language:TypeScript 74.2%Language:JavaScript 25.8%