@hadeshe93/vtconfig-mw-solid
v0.0.1
Published
A middleware should be used with `@hadeshe93/vite-chain` in order to support the app project based on `vue`.
Readme
A middleware should be used with @hadeshe93/vite-chain in order to support the app project based on vue.
Installation
$ npm install @hadeshe93/vtconfig-mw-solid --saveUsage
// use it in esm
import ChainConfig from '@hadeshe93/vite-chain';
import getMWSolid, { Options } from '@hadeshe93/vtconfig-mw-solid';
// return a ViteChainConfig instance
const options: Options = {
// ...
};
const chainConfig = getMWSolid(options)(
new ChainConfig()
);
// get config in json format
const viteConfig = chainConfig.toConfig();
// ...