zoukankan      html  css  js  c++  java
  • vue-cli初始化一个项目

    1,换成淘宝源;
    	npm config set registry https://registry.npm.taobao.org/
    	检查是否修改成功
    	npm config get registry
    
    
    2,安装vue脚手架
    	npm install -g vue-cli
    
    
    3,建一个项目
    	vue init webpack youDemo
    
    	配置列表:
    	E:workspacejc_testvue
    	λ vue init webpack fjc_vue
    
    	? Project name fjc_vue
    	? Project description A Vue.js project
    	? Vue build standalone
    	? Install vue-router? Yes
    	? Use ESLint to lint your code? No
    	? Set up unit tests No
    	? Setup e2e tests with Nightwatch? No
    	? Should we run `npm install` for you after the project has been created? (recommended) npm
    
    	   vue-cli · Generated "fjc_vue".
    
    
    
    4,项目跑起来
    	npm run dev
    
    5,
    	npm run build
    	就创建了一个dist文件,压缩后的文件
    

      

  • 相关阅读:
    DOM节点类型
    javascript中的变量、作用域
    this 不同情况指代的对象
    BOM对象节点
    浏览器兼容性
    总结
    javascript事件流讲解和实例应用
    7.20
    7.16总结
    飞机大战
  • 原文地址:https://www.cnblogs.com/aiyr/p/10256519.html
Copyright © 2011-2022 走看看