1 Initial Project
-
Run
wepy init standard heima_ugo
command to initialize the applet project -
Run
cd heima_ugo
into the project root directory -
Run
npm install
install all dependencies -
Run
wepy build --watch
command, open real-time compilation feature wepy project -
Open the micro-channel developer tools, load wepy project and view the results
-
2 combed project structure
-
Clean and Reset
src -> pages -> index.wpy
Home -
In the root directory
.prettierrc
in the configuration file, the new"semi": false
configuration to prevent each format code, add a semicolon issue -
Clean-up and reset
src -> app.wpy
the code,style
andscript
the label, delete unnecessary code -
Empty
src -> components
andsrc -> mixins
directory -
After combing the project will be completed, uploaded to the cloud code