refactor: use chained configs internally

This commit is contained in:
Igor Randjelovic
2020-11-14 15:23:44 +01:00
parent 9dd5471d6d
commit 2be179a8d0
10 changed files with 102 additions and 41 deletions

View File

@ -1,13 +1,9 @@
import { Configuration } from 'webpack';
import Config from 'webpack-chain';
import { IWebpackEnv } from './index';
// todo: add base configuration that's shared across all flavors
export default function (env): Configuration {
const config = new Config()
config.entry('')
return {
entry: {
'bundle.js': 'bundle.js',
},
};
export default function (env: IWebpackEnv): Config {
const config = new Config();
config.entry('');
return config;
}