Merge pull request #124 from CarlosZoft/refactor/redundant-if

refactor : remove redundant if
This commit is contained in:
DarkSky
2022-08-07 00:29:44 +08:00
committed by GitHub
2 changed files with 2 additions and 10 deletions
+1 -5
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: '/',
+1 -5
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: '/',