webpack-config-builder
v1.3.1
Published
Splitting your Webpack config into smaller parts
Downloads
4
Readme
webpack-config-builder
Split your webpack config into multiple smaller parts
Smaller is more maintainable
You all remember when we had Grunt everywhere? Our single Gruntfile kept getting growing and growing. Then we began splitting our Grunt configs. Now with Webpack we have to keep track of development, distribution config and if we're also targeting server, we're managing a lot of different config sharing some bits here and there.
Installation
npm install webpack-config-builder
Usage
var webpackConfigBuilder = require('webpack-config-builder');
webpackConfigBuilder();
Your webpack config is now a folder, whereas each property from the config can be written as a filename.
└── webpack
└── base.js
└── output.js
└── module
└── preLoaders.js
└── loaders.js
└── devServer.js
└── port.js
└── entry.js
└── plugins.js
Options
var webpackConfigBuilder = require('webpack-config-builder');
webpackConfigBuilder({
folder: './webpack',
options: {},
});
License
MIT