refactor : remove redundant if

This commit is contained in:
CarlosZoft 2022-08-06 09:54:18 -03:00
parent 34d30d9e43
commit 1ee5379022
2 changed files with 2 additions and 10 deletions

View File

@ -34,11 +34,6 @@ module.exports = function (webpackConfig) {
if (isProd) {
config.module.rules.unshift(style9);
} else {
config.module.rules.push(style9);
}
if (isProd) {
config.entry = {
main: [...config.entry.main, ...config.entry.polyfills],
};
@ -133,6 +128,7 @@ module.exports = function (webpackConfig) {
});
config.module.rules.splice(6);
} else {
config.module.rules.push(style9);
config.output = {
...config.output,
publicPath: '/',

View File

@ -35,11 +35,6 @@ module.exports = function (webpackConfig) {
if (isProd) {
config.module.rules.unshift(style9);
} else {
config.module.rules.push(style9);
}
if (isProd) {
config.entry = {
main: [...config.entry.main, ...config.entry.polyfills],
};
@ -124,6 +119,7 @@ module.exports = function (webpackConfig) {
});
config.module.rules.splice(6);
} else {
config.module.rules.push(style9);
config.output = {
...config.output,
publicPath: '/',