mirror of https://github.com/zulip/zulip.git
webpack: Don't import pyinotify in production context.
We only added the dependency for the development environment, but were imported it unconditionally.
This commit is contained in:
parent
3225fd39a5
commit
9be3f30340
|
@ -5,7 +5,6 @@ import os
|
|||
import sys
|
||||
import json
|
||||
import subprocess
|
||||
import pyinotify
|
||||
|
||||
if False:
|
||||
from typing import NoReturn
|
||||
|
@ -58,6 +57,7 @@ def build_for_dev_server(host, port, minify, disable_host_check):
|
|||
if disable_host_check:
|
||||
webpack_args.append('--disable-host-check')
|
||||
|
||||
import pyinotify
|
||||
try:
|
||||
webpack_process = subprocess.Popen(webpack_args)
|
||||
|
||||
|
|
Loading…
Reference in New Issue