1.依赖包
2.打包
1 @IF EXIST "%~dp0\node.exe" ( 2 "%~dp0\node.exe" --max_old_space_size=8192 3 "%~dp0\..\[email protected]@webpack\bin\webpack.js" %* 4 ) ELSE ( 5 @SETLOCAL 6 @SET PATHEXT=%PATHEXT:;.JS;=;% 7 node --max_old_space_size=8192 8 "%~dp0\..\[email protected]@webpack\bin
3.编译,热更新报错
1 @IF EXIST "%~dp0\node.exe" ( 2 "%~dp0\node.exe" --max_old_space_size=8192 3 "%~dp0\..\[email protected]@webpack-dev-server\bin\webpack-dev-server.js" %* 4 ) ELSE ( 5 @SETLOCAL 6 @SET PATHEXT=%PATHEXT:;.JS;=;% 7 node --max_old_space_size=8192 8 "%~dp0\..\[email protected]@webpack-dev-server\bin\webpack-dev-server.js" %*
原文地址:https://www.cnblogs.com/yue1-1/p/12291568.html
时间: 2024-07-30 07:24:21