Get the App
SLTechnology News&Howtos  ›  Development  › 

How to modify the port number of vue-cli3.0

Shulou Source: shulou.com Published: 2022-06-01 01:37:49 09月21日 Update

In this article, the editor introduces in detail "how to modify the port number of vue-cli3.0". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to modify the port number of vue-cli3.0" can help you solve your doubts.

Vue-cli3.0 modify port number under package.json file-- port "scripts": {"serve": "vue-cli-service serve-- port 9001",} vue.config.js file modify module.exports = {devServer: {port: 9001}} vue-cli3.0 settings specify port number to run

Create a vue.config.js file in the project root directory

Module.exports = {devServer: {port: 3000, / / Port}, / / lintOnSave: false / / cancel eslint Verification}

Just run the project.

After reading this, the article "how to modify the port number of vue-cli3.0" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, please follow the industry information channel.

Tags: Slogans documents articles content projects operations proper ideas new knowledge more root directories steps knowledge knowledge points ports articles details industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Tech Info Xiaomi MariaDB Shulou Technology