Quick start
Quickly create a new project with the following instructions:
x-build create [name] -q
Tips
- name: The name of the project directory you want to create.
- Parameters -q: Create a project quickly.
- x-build alias x, shorter instructions.
This process will copy the template to the /[name]
of the current directory, and then automatically install the dependency (this process is more time-consuming to install the yarn):
After the installation is complete, there will be a next prompt, enter the created directory:
Go to the created directory and start webpack devServer via npm or yarn:
cd [name]
npm run serve
Open http://localhost:8080 at this point. If you see the x-build and version number, your project is up and running.
Quickly created projects only provide the basic functionality provided by webpack. To experience more features, please continue to the next chapter.
← CLI Create project →