Have ideas to improve npm?Join in the discussion! »

    easywebpack-js

    4.0.1 • Public • Published

    easywebpack-js

    NPM version build status Test coverage David deps npm download

    webpack javascript file compress for easywebpack.

    Install

    $ npm i easywebpack-js --save-dev

    Usage

    // build/index.js
    const easywebpack = require('easywebpack-js');
    const config = {
      env: process.env.BUILD_ENV,
      entry: {
        'index': 'lib/index.js'
      }
    };
    easywebpack.build(config);

    Run

    {
     "scripts": {
       "build:test": "cross-env BUILD_ENV=test NODE_ENV=development node build/index.js",
       "build:prod": "cross-env BUILD_ENV=prod NODE_ENV=production node build/index.js",
     }
    }

    License

    MIT

    Install

    npm i easywebpack-js

    DownloadsWeekly Downloads

    3

    Version

    4.0.1

    License

    MIT

    Unpacked Size

    5.71 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar