The utility to create flexible and shareable webpack configurations for complex projects
example TypeScript
webpack.config.ts
import {WebpackSetup} from '@webpack-config-suite/core';
import {DevelopmentConfig} from '@webpack-config-suite/development';
import {CssConfig, LessConfig} from '@webpack-config-suite/styles';
import {BabelReactConfig} from '@webpack-config-suite/babel';
import {TypeScriptReactConfig} from '@webpack-config-suite/typescript';
import MyCustomApplicationEntry from './config/MyCustomApplicationEntry';
export default WebpackSetup.newSetup()
.use(MyCustomApplicationEntry)
.use(CssConfig)
.use(LessConfig)
.use(BabelReactConfig)
.use(TypeScriptReactConfig)
.use(DevelopmentConfig)
.newFactory();
webpack.config.ts
import {WebpackSetup} from '@webpack-config-suite/core';
import {DevelopmentConfig} from '@webpack-config-suite/development';
import {CssConfig, LessConfig} from '@webpack-config-suite/styles';
import {LernaTypeScriptReactConfig} from '@webpack-config-suite/lerna';
import {MyLernaApplicationEntry} from './config/MyLernaApplicationEntry';
export default WebpackSetup.newSetup()
.use(MyLernaApplicationEntry)
.use(CssConfig)
.use(LessConfig)
.use(LernaTypeScriptReactConfig)
.use(DevelopmentConfig)
.newFactory();
git clone https://github.com/ria-develop/webpack-config-suite.git && cd webpack-config-suite && yarn && yarn example:typescript
git clone https://github.com/ria-develop/webpack-config-suite.git && cd webpack-config-suite && yarn && yarn example:lerna
If you don't fill comfortable with a pure object oriented Javascript/Typescript you may find alternatives here