티스토리 뷰

반응형

vscode 에서 prettier 사용 시 html tag 가 보기 싫게 formatting 될 때

문제점

  <strong
    >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
    properly without JavaScript enabled. Please enable it to
    continue.</strong
  >

 

반응형

해결

# vscode - settings.json 추가

"prettier.htmlWhitespaceSensitivity": "ignore",

결과

  <strong>
    We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
    properly without JavaScript enabled. Please enable it to continue.
  </strong>
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함