yoyi-cli
offline tools for yoyi
Last updated a year ago by yoyife .
ISC · Original npm · Tarball · package.json
$ cnpm install yoyi-cli 
SYNC missed versions from official npm registry.

yoyi-cli

npm CircleCI npm download

Cross-project use, Helps you manage webpack configuration

Install

    npm install yoyi-cli --save-dev

Usage

yoyi-cli run start|server : start dev server 
yoyi-cli run build :  build 

Need to configure the entry

In package.json


config: {
    entry: '',     // require,  webpack entry for build dist, 
    port: 8002,     // dev server port, default 8002
    output:{},      // webpack output for build dist
    HtmlWebpackPluginConfig: {} //webpack plugin config for build dist 
}

Or in webpack.config.js

You can have a custom configuration, It will merge with the default configuration

    module.exports = function(defaultConfig) {
        
        defaultConfig.entry = {
            // entry
        }

         defaultConfig.entry = {
            // entry
        }
        
        defaultConfig.plugins = {
            // some plugins
        }
        // or
        defaultConfig.plugins.push(['other plugin'])
        ....
    }


Current Tags

  • 1.1.8                                ...           latest (a year ago)

14 Versions

  • 1.1.8                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |