Files
sam-manage/resources/views/partials/react-cdn.blade.php
김보곤 56d060a37d refactor:React CDN을 공통 partial로 통합
- 새 파일: resources/views/partials/react-cdn.blade.php
- 모든 React 페이지에서 중복된 CDN 스크립트를 @include('partials.react-cdn')로 대체
- 30개 파일 업데이트 (finance, juil, system, sales)
- 유지보수성 향상: CDN 버전 변경 시 한 곳만 수정
2026-02-12 10:34:48 +09:00

16 lines
699 B
PHP

{{--
React 18 + Babel CDN (Production Build)
Usage: @include('partials.react-cdn')
- Production 빌드: DevTools 경고 없음
- Babel in-browser 경고 자동 억제
- createRoot 헬퍼 포함
--}}
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script>
// Babel in-browser transformer 경고 억제
(function(){var w=console.warn;console.warn=function(){if(typeof arguments[0]==='string'&&arguments[0].indexOf('in-browser Babel')>-1)return;w.apply(console,arguments)};})();
</script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>