zante

0.2.0 • Public • Published

zante

version

Extremely simple way to use webpack. Use .zanterc.js to config webpack, easy like eslint or babel. like this:

module.exports = {
  entry: {
    app: './src/app.js'
  },
  plugins: [
    'es',
    'eslint',
    'css',
    'assets'
  ],
  env: {
    production: {
      output: {
        publicPath: 'http://xxx.cdn.com'
      },
      plugins: [
        'production',        
        'optimize',
        'commonchunk',
        'html'
      ]
    },
    development: {
      plugins: [
        'development',
        'dll',
        [
          'html',
          [{
            filename: 'index.html',
            dll: true
          }]
        ],
        'static',
        [
          'proxy',
          {
            api: 'http://mock-server.com'
          }
        ]
      ]
    }
  }
}

Needn't to write webpack config file yourself.The .zanterc.js file is enough!

docs

It contains some plugins, so I write a gitbook here: documention

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i zante

Weekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • carrytao