yoyi-cli

1.1.8 • Public • Published

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'])
        ....
    }


Dependencies (51)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i yoyi-cli

    Weekly Downloads

    0

    Version

    1.1.8

    License

    ISC

    Unpacked Size

    25.9 kB

    Total Files

    22

    Last publish

    Collaborators

    • scrivania
    • yoyife
    • zhengyanwen
    • shijiebai
    • zhangyunzhu
    • shanyongshun