Run the following command to create an Esmx project:
After running the command, you will see the template selection interface:
| Template | Description |
|---|---|
| shared-modules | Micro frontend shared modules solution |
| vue-csr | Vue 3 Client-Side Rendering |
| vue-ssr | Vue 3 Server-Side Rendering |
| vue2-csr | Vue 2.7 Client-Side Rendering |
| vue2-ssr | Vue 2.7 Server-Side Rendering |
You can also directly specify a template using the -t or --template option to skip the interactive selection:
After creating the project, navigate to the directory and start the development server:
The development server will start at http://localhost:3000.
Build the production version:
The created project structure is as follows:
Use the --force or -f option to force override an existing directory:
Use the --name or -n option to specify the project name: