chore: clean up HMR runtime

This commit is contained in:
Igor Randjelovic
2021-03-28 19:39:22 +02:00
parent b2a636e307
commit 6dc0c7e285
3 changed files with 90 additions and 38 deletions

View File

@ -283,6 +283,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
{
__DEV__: mode === 'development',
__NS_WEBPACK__: true,
__NS_ENV_VERBOSE__: !!env.verbose,
__NS_DEV_HOST_IPS__:
mode === 'development' ? JSON.stringify(getIPS()) : `[]`,
__CSS_PARSER__: JSON.stringify('css-tree'), // todo: replace from config value