Closed lita-jerry closed 1 year ago
Installation step: $ npm install ant-design-vue --save // vite.config.js import Components from 'unplugin-vue-components/vite'; import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
export default { plugins: [ / ... / Components({ resolvers: [AntDesignVueResolver()], }), ], };
choose a .vue file use components:
run: vite-ssr --port 3333 --open
see detail: https://github.com/frandiox/vitesse-ssr-template/issues/16
and the demo: https://github.com/frandiox/vitesse-ssr-template
Installation step: $ npm install ant-design-vue --save // vite.config.js import Components from 'unplugin-vue-components/vite'; import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
export default { plugins: [ / ... / Components({ resolvers: [AntDesignVueResolver()], }), ], };
choose a .vue file use components:
run: vite-ssr --port 3333 --open
see detail: https://github.com/frandiox/vitesse-ssr-template/issues/16
and the demo: https://github.com/frandiox/vitesse-ssr-template