feat: make react config functional

This commit is contained in:
Igor Randjelovic
2020-11-22 15:51:12 +01:00
parent 403fa6b30f
commit 241c4102f7
6 changed files with 107 additions and 60 deletions

View File

@ -134,8 +134,15 @@ export default function (config: Config, env: IWebpackEnv): Config {
config.module
.rule('js')
.test(/\.js$/)
.exclude.add(/node_modules/)
.end()
.use('babel-loader')
.loader('babel-loader');
.loader('babel-loader')
.options({
generatorOpts: {
compact: false,
},
});
// set up css
config.module