First put figure
I was really wrong. Not by parcel
A few days ago, Yudhoyono livestreamed the benefits of building wheels, mainly to exercise themselves. So I am still determined to build this project tool slowly.
This upgrade
This version is V1.0.5.
Let’s take a look at the pre-installed dependencies for this release. Our project UI framework is pre-installed at [email protected], which is loaded on demand by default. The main reason why it was introduced this time, rather than Element-Plus, is that Parcel2 doesn’t do a very good job of introducing real-time checks for component styles in JS files like babel.config.js, where you have to manually refresh to get the latest state. The customStyleName: (name) => {} method is used for customStyleName: (name) => {}. Therefore, [email protected] was finally selected. To match the on-demand import feature, we introduced babel-plugin-import.
Finally, we introduced the latest version [email protected] this time, corresponding to @vue/[email protected].
Okay, so let’s look at all the dependencies that we introduced.
"devDependencies": {
"@parcel/babel-plugin-transform-runtime": 1823 "" ^ 2.0.0 - the nightly.."@parcel/transformer-image": "2.0.0 - beta. 2"."@parcel/transformer-sass": "2.0.0 - beta. 2"."@parcel/transformer-vue": "2.0.0 - beta. 2"."@vue/compiler-sfc": "^ 3.0.11." "."babel-eslint": "^ 10.1.0"."babel-plugin-import": "^ 1.13.3"."eslint": "^ 7.23.0"."eslint-plugin-vue": "^ 7.8.0"."mockjs": "^ 1.1.0." "."parcel": 2 "" ^ 2.0.0 - beta.."sass": "^ 1.32.8"
},
"dependencies": {
"ant-design-vue": "^ 2.1.4." "."axios": "^ 0.21.1"."vue": "^ 3.0.11." "."vue-router": "4"."vuex": "^ 4.0.0"
}
Copy the code
Likewise, the scaffolding parcel-vue-cli for parcel-vue-app has been significantly updated this time to version 1.0.9.
This time, the main update is to automatically reset the remote repository after pulling the repository. This way, after you create the project, you can customize your own warehouse address.
In actual combat
Build parcel – vue – app
The installation
npm install parcel-vue-cli -g
Copy the code
Check the version
parcel-vue-cli -v
Copy the code
Initialize the
parcel-vue-cli init <projectName>
Copy the code
Start the project
Install dependencies
npm install
Copy the code
Start the
npm run serve
Copy the code
packaging
npm run build
Copy the code
The warehouse address
Github.com/maomincodin…
Github.com/maomincodin…