Skip to content

Commit

Permalink
fix: 📝 add warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-hemphill committed May 13, 2021
1 parent 63fbc1c commit 98d7347
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ e.g. the CSP, CSP Report-Only, Report-To, and Referrer-Policy headers.

Mostly config compatible with [csp-html-webpack-plugin](https://github.com/slackhq/csp-html-webpack-plugin)

## WARNING, STILL EARLY AND THINGS LIKE MODULE RESOLUTION ARE FINICKY

## Installation

Install the plugin with npm:
Expand All @@ -25,6 +27,13 @@ $ npm install --save-dev vite-plugin-csp
npm i -D vite-plugin-csp
```

## Known issues

- Relative modules are resolved relative to the CWD, not the file
- no SSR support (and thus no nonce support)
- No parsing of JS embeded sources (since that would require framework specific plugins)
- Only `script` and `style` related directives are supported (except for the inclusion of `report-to` for generating headers)

## Under construction :)

<!--
Expand Down

0 comments on commit 98d7347

Please sign in to comment.