신변잡기 분석 및 설계

블로그 이미지

큐그

IT 관련 및 신변잡기에 대한 포스팅을 해보고자 하는 블로그입니다.

[BrowserSync] 크로스 브라우져 테스트 툴 BrowserSync

IT 개발 2017. 11. 23. 18:08


위의 이미지는 브라우져 테스트 툴인 BrowserSync의 홈페이지에 있는 BrowserSync의 특징들입니다.


간단하게 BrowserSync 설치와 사용법에 대해서 알아보겠습니다.

1. BrowserSync 설치

  1-1. Node.js 설치

1-1-1. Node.js 홈페이지 에서 Node.js를 다운로드 받은 후 설치합니다.

  1-2. BrowserSync 설치

1-2-1. Command 창을 열고 다음 명령어를 통해서 설치합니다.

        npm install -g browser-sync 


2. BrowserSync 시작

   2-1. 프록시 모드: 이미 서버를 실행 중인 경우(일반적) 

2-1-1. Command 창에서 다음 명령어를 실행합니다.(4200은 제 경우의 포트 번호입니다.)

         browser-sync start --proxy "localhost:4200" --files ["css/*.css", "js/*.js", "*.html"]

   2-2. 서버 모드(정적 사이트)

2-2-1. HTML 파일만 사용하는 경우 서버 모드를 사용합니다. BrowserSync는 미니 서버를 시작하고 사이트를 볼 수 있는 URL을 제공합니다.

2-2-2. Command 창에서 다음 명령어를 실행합니다.

         browser-sync start --server --files "css/*.css"

3. 화면

3-1. 설치가 완료되고 실행한 경우 다음과 같은 화면을 보게 됩니다.(모드에 따라 다름)


3-2. 사이트로의 접속은 Local을 이용하고 BrowserSync UI 화면으로의 접속은 UI쪽 URL을 이용하여 접속하면 됩니다. 대략 아래와 같은 느낌입니다.










The above image is the features of BrowserSync on the homepage of BrowserSync, a browser test tool.


Let's take a quick look at installing and using BrowserSync.

1. Install BrowserSync

  1-1. Install Node.js

1-1-1. Download Node.js from Node.js homepage and install it.

  1-2. Install BrowserSync

1-2-1. Open the Command window and install it using the following command.

          npm install -g browser-sync 

    2. Start BrowserSync

       2-1. Proxy mode: If the server is already running (typical) 

    2-1-1. In the Command window, execute the following command (4200 is the port number in my case).

         browser-sync start --proxy "localhost:4200" --files ["css/*.css", "js/*.js", "*.html"]

       2-2. Server mode (static site)

    2-2-1. If you only use HTML files, use server mode. BrowserSync launches the mini server and provides a URL to view the site.

    2-2-2. In the Command window, execute the following command.

         browser-sync start --server --files "css/*.css"

    3. Screen

    3-1. When the installation is complete and executed, you will see the following screen (depending on the mode)


    3-2. You can connect to the site using Local and connect to the BrowserSync UI screen using the UI URL. The screen feels roughly like this.


    반응형
    저작자표시 비영리 변경금지 (새창열림)

    'IT 개발' 카테고리의 다른 글

    1. Tensorflow 설치  (0) 2017.07.13
    Jedis Connection Pool 설정 및 사용(xml)  (0) 2017.06.22
    자바 타임존 목록(Java Timezone List)  (0) 2017.06.15
    JavaScript 학습 - 1회차  (0) 2017.03.28
    Sublime Text 3 html 바로 실행하기  (0) 2017.03.28
    Posted by 큐그
    블로그 이미지

    IT 관련 및 신변잡기에 대한 포스팅을 해보고자 하는 블로그입니다.

    by 큐그

    공지사항

      최근...

    • 포스트
    • 댓글
    • 트랙백
    • 더 보기

    태그

    • 제네릭
    • IntelliJ
    • 상속
    • 자바
    • 리뷰
    • 오류
    • require_new
    • java
    • ArithmeticException
    • Effective JAVA 3/E
    • 에러
    • 맛집리뷰
    • 이펙티브 자바 3/E
    • 이펙티브 자바
    • Target클래스
    • MvcRequestMatcher
    • 네트워크
    • Spring Batch
    • 데이터베이스
    • 클래스와 인터페이스
    • 맛집
    • ClassCastException
    • bytearrays -> string
    • CGLIB Proxy
    • bytearrays
    • 매개변수
    • group_concat querydsl
    • effective java
    • 오마카세
    • 인터페이스

    글 보관함

    «   2025/06   »
    일 월 화 수 목 금 토
    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

    링크

    카테고리

    분류 전체보기 (65)
    IT 개발 (58)
    개념 정리 (30)
    명령어 (2)
    에러 (17)
    코딩테스트 (2)
    초대장 (1)
    구매 (2)
    맛집 (3)
    식당 (2)
    카페 (1)

    카운터

    Total
    Today
    Yesterday
    방명록 : 관리자 : 글쓰기
    큐그's Blog is powered by daumkakao
    Skin info material T Mark3 by 뭐하라
    favicon

    신변잡기 분석 및 설계

    IT 관련 및 신변잡기에 대한 포스팅을 해보고자 하는 블로그입니다.

    • 태그
    • 링크 추가
    • 방명록

    관리자 메뉴

    • 관리자 모드
    • 글쓰기
    • 분류 전체보기 (65)
      • IT 개발 (58)
        • 개념 정리 (30)
        • 명령어 (2)
        • 에러 (17)
        • 코딩테스트 (2)
      • 초대장 (1)
      • 구매 (2)
      • 맛집 (3)
        • 식당 (2)
        • 카페 (1)

    카테고리

    PC화면 보기 티스토리 Daum

    티스토리툴바