@hadeshe93/vtconfig-mw-vue3
v1.0.1
Published
A middleware should be used with `@hadeshe93/vite-chain` in order to support the app project based on `vue`.
Downloads
8
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-vue3 --save
Usage
// use it in esm
import ChainConfig from '@hadeshe93/vite-chain';
import getMWVue3, { Options } from '@hadeshe93/vtconfig-mw-vue3';
// return a ViteChainConfig instance
const options: Options = {
// ...
};
const chainConfig = getMWVue3(options)(
new ChainConfig()
);
// get config in json format
const viteConfig = chainConfig.toConfig();
// ...