解决:webpack编译以及打包报错

1.依赖包

解决:webpack编译以及打包报错

 2.打包

解决:webpack编译以及打包报错

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe" --max_old_space_size=8192 
  "%~dp0\..\@webpack\bin\webpack.js" %*
) ELSE (
  @SETLOCAL
  @SET PATHEXT=%PATHEXT:;.JS;=;%
  node --max_old_space_size=8192 
  "%~dp0\..\@webpack\bin

3.编译,热更新报错

解决:webpack编译以及打包报错

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe" --max_old_space_size=8192 
  "%~dp0\..\@webpack-dev-server\bin\webpack-dev-server.js" %*
) ELSE (
  @SETLOCAL
  @SET PATHEXT=%PATHEXT:;.JS;=;%
  node --max_old_space_size=8192 
  "%~dp0\..\@webpack-dev-server\bin\webpack-dev-server.js" %*

相关推荐