Skip to content

noticeMaker/yoyi-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yoyi-tools

npm CircleCI npm download

Cross-project use, Helps you manage webpack configuration

Install

    npm install yoyi-tools 

Usage

yoyi-tools run start|server : start dev server 
yoyi-tools 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'])
        ....
    }


About

webpack tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published