25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
284 B

3 년 전
  1. @ECHO off
  2. SETLOCAL
  3. CALL :find_dp0
  4. IF EXIST "%dp0%\node.exe" (
  5. SET "_prog=%dp0%\node.exe"
  6. ) ELSE (
  7. SET "_prog=node"
  8. SET PATHEXT=%PATHEXT:;.JS;=;%
  9. )
  10. "%_prog%" "%dp0%\..\browser-sync\dist\bin.js" %*
  11. ENDLOCAL
  12. EXIT /b %errorlevel%
  13. :find_dp0
  14. SET dp0=%~dp0
  15. EXIT /b