handypack

1.4.2 • Public • Published

handypack

build commitizen codecov prettier download npm semantic greenkeeper

A simple configuration build tool for webpack.

Install

npm i @forgleaner/handypack -D

Usage

const Path = require('path');
const { CreateWebpackConfig } = require('handypack');
 
const rootPath = Path.join(__dirname);
const srcPath = Path.join(rootPath, 'src');
const outputPath = Path.join(rootPath, 'dist');
 
const webpackConfig = CreateWebpackConfig({
  mode: process.env.NODE_ENV,
  context: srcPath,
  entry: {
    main: Path.join(srcPath, 'entry1.js')
  },
  output: {
    path: outputPath
  },
  plugin: {
    HtmlWebpackPlugin: {
      template: Path.join(srcPath, 'index.html'),
      filename: Path.join(outputPath, 'index.html')
    }
  }
});
 
module.exports = webpackConfig;

License

MIT

/handypack/

    Package Sidebar

    Install

    npm i handypack

    Weekly Downloads

    13

    Version

    1.4.2

    License

    MIT

    Unpacked Size

    65.2 kB

    Total Files

    12

    Last publish

    Collaborators

    • jereation