0.0.9 • Published 3 years ago

hola-cli-service v0.0.9

Weekly downloads
9
License
MIT
Repository
-
Last release
3 years ago

hola-cli-service

service for hola-cli

开始

  1. 安装依赖

$ npm install hola-cli-service

  1. 配置 hola.config.js
 configs: [
   {
     moduleName: 'china',
     moduleEntry: './app/china/main.js',
     publicPath: {
       test: '/',
       prod: '/'
     },
     // webpack环境变量注入
     env: {}
   }
 ],
  1. 配置命令
"scripts": {
  "dev": "hola-cli-service serve",
  "build": "hola-cli-service build"
},
  1. 启动服务

$ npm run dev