frostney / webpack-config-builder

Split your webpack config into multiple smaller parts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack-config-builder

Split your webpack config into multiple smaller parts

This project is unsupported. Please use webpack-merge instead.

Build Status Dependency Status devDependency Status codecov.io

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

About

Split your webpack config into multiple smaller parts

License:MIT License


Languages

Language:JavaScript 100.0%