Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Chrome Extension Template

ReactでChrome拡張を開発するためのテンプレート

Package

  • "react": "^17.0.2",
  • "typescript": "^4.1.2"
  • "node-sass": "^5.0.0",

使い方

  1. Chrome拡張のボタンから"拡張機能を管理"を開く
  2. "パッケージ化されていない拡張機能を読み込む"をクリックしてbuildディレクトリを選択
  3. 新しいタブを開くと以下のようなエラーが出てきます

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'sha256-xxx'". Either the 'unsafe-inline' keyword, a hash ('sha256-*****'), or a nonce ('nonce-...') is required to enable inline execution.

public/manifesct.jsoncontent_security_policy'sha256-xxx'の部分をエラー文のsha256-*****に置き換える

  1. もう一度buildしてページを読み込むとファイルが見れます

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages