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:
Tim Abbott 2019-06-04 10:53:04 -07:00
parent 3225fd39a5
commit 9be3f30340
1 changed files with 1 additions and 1 deletions

View File

@ -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)