zoukankan      html  css  js  c++  java
  • vue打包

    npm install
    npm run dev
    npm run build

    项目运行
    1.环境依赖 npm i

    2.本地运行 npm run serve

    3.打包运行 npm run build

     @types/node

    npm install --save @types/node

    npm install @types/node --save

     =======================================================================

    # clone the project
    git clone https://github.com/PanJiaChen/vue-element-admin.git
    
    # enter the project directory
    cd vue-element-admin
    
    # install dependency
    npm install
    
    # develop
    npm run dev
    ==============================================================================

    Debugger for Firefox

    Debugger for Chrome


    {
    "version": "0.2.0",
    "configurations": [
    {
    "type": "chrome",
    "request": "launch",
    "name": "vuejs: chrome",
    "url": "http://localhost:8080",
    "webRoot": "${workspaceFolder}/src",
    "breakOnLoad": true,
    "sourceMapPathOverrides": {
    "webpack:///./src/*": "${webRoot}/*"
    }
    },
    {
    "type": "firefox",
    "request": "launch",
    "name": "vuejs: firefox",
    "url": "http://localhost:8080",
    "webRoot": "${workspaceFolder}/src",
    "pathMappings": [{ "url": "webpack:///src/", "path": "${webRoot}/" }]
    }
    ]
    }

    构建步骤

    # 安装依赖
    npm install

    运行开发服务器 localhost:4000

    npm run dev

    编译(压缩JS和CSS等)

    npm run build

    单元测试

    npm run unit

    运行所有测试

    npm test

  • 相关阅读:
    GUID
    Castle学习笔记二:框架结构及配置
    Linux编程基础
    Linux文件编程
    单臂路由配置实例
    CCNA学习笔记#02第7章操作与配置Cisco IOS
    Linux基本命令
    Linux系统中rar、unrar命令安装和使用详解
    批处理设置IP与DNS服务器
    Linux下载安装5笔输入法
  • 原文地址:https://www.cnblogs.com/zwei1121/p/9275160.html
Copyright © 2011-2022 走看看