mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
refactor : remove redundant if
This commit is contained in:
@@ -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: '/',
|
||||
|
||||
Reference in New Issue
Block a user