首页 > 技术文章 > 项目链接模拟器[记录]

caiCheryl 2017-09-11 23:33 原文

 

avalon+webpack脚手架启用后

webstorm-apicloud 

  http://docs.apicloud.com/Dev-Tools/webStorm-apicloud-plugin

  放置     项目 >  项目里面的 src img css index.html index.js ......  +  webStorm-APICloud  (apicloud 不用 name+version 进组件)

       webStorm-APICloud 里面的 .jar 需要java环境支持   (cannot run program “java”)

      cmd  jar  看有没有 java 环境

  配置     webstorm 配置 Android 真机同步  + 海马玩模拟器

  APICloud 要求有 config.xml 配置文件

      与index.html 同级 增加 配置文件  

      在webpack.config 里面创建  

          new HtmlWebpackPlugin({
          filename:'config.xml',
          template: __dirname + "/src/config.xml",
             inject:false
          })

  dist文件     所有组件加载(npm install)后  ---- 出现文件  node_modules(组件再加于此)

      node_modules 进行打包 npm 进行   build dev   出现 dist 文件

  dist 进行 安卓真机同步

 

html 页面要用的 css 在该html页面的 js 文件夹中 require 进来

 

推荐阅读