PROGRAMMING/Web

[Chrome Extension] CLI 세팅

yuujoeng 2023. 3. 13. 01:43

1. cmd에서 Chrome Extension CLI 설치하기

npm install -g chromex-cli

 

2. "chrome-extension" 프로젝트 명 지정하여 새로운 프로젝트 생성

chromex create my-extension

 

2. cheerio도 사용할 것이니 설치

npm install cheerio

 

3. 확장 프로그램 실행을 위해 생성된 디렉토리로 이동하여 명령어 실행

cd my-extension
npm run watch

 

4. chrome://extensions에 접속하여 개발자 모드를 On하고 압축 해제된 확장 프로그램 로드

 

5. chrome-extionsion/build 폴더 선택

 

 

6. 확장 프로그램이 추가된 것 확인