8.1.3 • Published 6 months ago

@krakenjs/webpack-config-grumbler v8.1.3

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

@krakenjs/webpack-config-grumbler

Installation

npm install -D @krakenjs/webpack-config-grumbler

Usage

  1. Create a webpack.config.js file at the root of your project.
  2. Add the following contents to your webpack.config.js file:

    import { getWebpackConfig } from "@krakenjs/webpack-config-grumbler";
    
    const FILE_NAME = "mylibrary";
    const MODULE_NAME = "mylibrary";
    
    export const WEBPACK_CONFIG = getWebpackConfig({
      filename: `${FILE_NAME}.min.js`,
      modulename: MODULE_NAME,
      minify: true,
    });
    
    export default [WEBPACK_CONFIG];