Use Koa to start a dev-server
Custom middleware for handling parsing and compilation
Initially use js, then maybe use ts to refactor and improve it
- install dependencies
yarn
ornpm install
- link the
sure-vite
to be a global command (just link this package to the your computer globalnode_modules
directory). Must be insure-vite
project package directory (this root directory)
npm link
or the alias:npm ln
if you want to remove the
sure-vite
command
use it:npm unlink sure-vite
- install the template project dependencies
cd template/vite-vue-pro
andyarn
- run the demo
yarn start
➡️ Actually runningsure-vite
(you can see it in the package.json file)
- open the server link in your browser
Then, you can see the simple vue3 project running with my command: sure-vite
, but not vite
.