[개발] Programming/Git, Github
깃허브 npm 빌드 오류 : Html Webpack Plugin Error
eatyourKimchi
2022. 12. 11. 00:01
728x90

깃허브 npm 빌드 오류
깃허브에서 npm run build를 하는데 오류가 발생했다.
오류 문구를 딱 봤을 때는 뭔 소린가 했는데 마지막 문구에 힌트가 있었다.
"Parse Error" 즉 HTML 파싱할 때 오류가 났다는 의미이다.
Html Webpack Plugin:
Error: html-webpack-plugin could not minify the generated output.
In production mode the html minifcation is enabled by default.
If you are not generating a valid html output please disable it manually.
You can do so by adding the following setting to your HtmlWebpackPlugin config :
|
| minify: false
|
See https://github.com/jantimon/html-webpack-plugin#options for details.
For parser dedicated bugs please create an issue here:
https://danielruf.github.io/html-minifier-terser/
Parse Error:
Webpack이 빌드하기 위해 HTML을 로딩하는데,
이때 구문 오류가 발생해서 에러를 내뱉은 것이다.
분명히 " 또는 ' 또는 태그 오류라 의시모디어 소스를 확인해보니,
아래 " 가 빠져 있었다는.. ㅎㅎ
< script src = "https://www.googletagmanager.com" >
</ script >
쌍따음표를 추가해주니 정상적으로 빌드가 완료됐다!
728x90