Skip to content

Commit 1de214a

Browse files
committed
Replace strict equality checks with loose equality in webpack config conditions
1 parent d2ea19b commit 1de214a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/editor/webpack.config.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const build_status_plugin = {
1515

1616
const on_start = () => {
1717
if (is_initial_build) {
18-
if (active_compilers === 0) {
18+
if (active_compilers == 0) {
1919
console.log('Building...')
2020
}
2121
active_compilers++
@@ -28,7 +28,7 @@ const build_status_plugin = {
2828
compiler.hooks.done.tap('BuildStatusPlugin', () => {
2929
if (is_initial_build) {
3030
active_compilers--
31-
if (active_compilers === 0) {
31+
if (active_compilers == 0) {
3232
console.log('Done.')
3333
}
3434
is_initial_build = false
@@ -139,7 +139,7 @@ const config: ((env: any, argv: any) => webpack.Configuration)[] = [
139139
},
140140
// View Configuration (Web environment)
141141
(env: any, argv: any): webpack.Configuration => {
142-
const is_production = argv.mode === 'production'
142+
const is_production = argv.mode == 'production'
143143
return {
144144
name: 'view',
145145
mode: is_production ? 'production' : 'development',

0 commit comments

Comments
 (0)