see this and this
"Basically, if you import a file that is prefixed by JUPYTERLAB_(RAW|URL|FILE)LOADER, it will use that particular webpack loader. So if in your build step, you copy the relevant files to your build directory and prefix them with JUPYTERLAB_FILE_LOADER_, they can be bundled up with webpack using its file loader"