flat-webpack-config
A flat configuration helper for webpack
Install
npm i -d flat-webpack-config
Usage
Initialize your module
mkdir project-namecd project-namenpm initnpm i -d flat-webpack-config
flat-webpack-config.json
Create a
webpack.config.js
Create a 'use strict'; moduleexports = __dirname; // or avoid the `flat-webpack-config.json` file bymoduleexports = __dirname "bundles": "app": "anticore": "anticore" "polyfills": "fetch": "whatwg-fetch" "Promise": "es6-promise/dist/es6-promise.auto.min.js" "URL": "js-polyfills/url.js" "map": true "output": "./assets/js" "spaces": 2;
Run webpack
webpack
Tip: Target old browsers to load the polyfills