PageSourceSearch

https://hakyungsoft.com/assets/js/stagewise-dev.js

js hakyungsoft.com collected 2026-10-02 00:06:37 UTC 1,151 bytes, 31 lines download raw bytes

1// stagewise-dev.js - 개발 모드에서만 실행되는 stagewise 툴바 통합
2(function() {
3  // 개발 모드인지 확인 (localhost 또는 127.0.0.1에서 실행 중인지 확인)
4  const isLocalhost = window.location.hostname === 'localhost' || 
5                      window.location.hostname === '127.0.0.1' || 
6                      window.location.hostname.includes('.local');
7  
8  // NODE_ENV가 설정되어 있지 않은 경우 localhost로 판단
9  const isDevMode = isLocalhost;
10  
11  if (isDevMode) {
12    // 경로 설정 (CDN 또는 로컬 노드 모듈)
13    const modulePath = 'https://cdn.jsdelivr.net/npm/@stagewise/toolbar/dist/index.js';
14    
15    // stagewise 툴바 로드
16    import(modulePath)
17      .then(module => {
18        const { initToolbar } = module;
19        
20        // stagewise 초기화
21        initToolbar({
22          plugins: [], // 필요한 경우 플러그인 추가
23        });
24        
25        console.log('✅ Stagewise toolbar initialized in dev mode');
26      })
27      .catch(err => {
28        console.error('Failed to initialize Stagewise toolbar:', err);
29      });
30  }
31})(); 

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.