Skip to content

Commit 5850d6a

Browse files
committed
fix: 🐛 build and console statements
1 parent 004f5bc commit 5850d6a

File tree

4 files changed

+71
-65
lines changed

4 files changed

+71
-65
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ $ npm install --save-dev vite-plugin-csp
2525
npm i -D vite-plugin-csp
2626
```
2727

28+
## Under construction :)
29+
30+
<!--
2831
## Zero Config Usage
2932
3033
Add your base logo as `logo.png` file to your assets folder.
@@ -42,7 +45,7 @@ plugins: [
4245
```
4346
4447
## Basic Usage <!-- [<svg alt="codesandbox" xmlns="http://www.w3.org/2000/svg" width="16" height="18"><path d="M7.219 15.877V9.394l-5.73-3.208v3.696l2.624 1.48v2.78l3.106 1.735zm1.488.038l3.163-1.773v-2.845l2.642-1.49V6.16l-5.805 3.26v6.496zm5.041-11l-3.05-1.72-2.68 1.512L5.32 3.193 2.241 4.937l5.744 3.215 5.763-3.237zM0 13.513V4.53L8 0l8 4.511V13.5l-8.001 4.484L0 13.513z" fill="currentColor"/></svg>](https://codesandbox.io/s/vite-plugin-csp-demo-uh195?file=/webpack.config.js) -->
45-
48+
<!--
4649
Add the plugin to your vite config as follows:
4750
4851
```javascript
@@ -212,6 +215,6 @@ This project is licensed under [MIT](https://github.com/josh-hemphill/vite-plugi
212215
[favicons]: https://github.com/haydenbleasel/favicons
213216
214217
## Contributors
215-
218+
-->
216219
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
217220
<!-- ALL-CONTRIBUTORS-LIST:END -->

cSpell.json

Lines changed: 63 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,64 @@
11
{
2-
"version": "0.1",
3-
"language": "en",
4-
"words": [
5-
"Atrule",
6-
"bitauth",
7-
"bitjson",
8-
"bracketize",
9-
"builtins",
10-
"caddyfile",
11-
"cimg",
12-
"circleci",
13-
"codecov",
14-
"commitlint",
15-
"consts",
16-
"csstree",
17-
"Delineators",
18-
"Deno",
19-
"dependabot",
20-
"editorconfig",
21-
"errored",
22-
"esnext",
23-
"execa",
24-
"exponentiate",
25-
"favicon's",
26-
"favicons",
27-
"globby",
28-
"homescreen",
29-
"iife",
30-
"libauth",
31-
"markdownlint",
32-
"mediastream",
33-
"mkdir",
34-
"Openbase",
35-
"pasteable",
36-
"pluginutils",
37-
"prefetch",
38-
"prettierignore",
39-
"Reademe",
40-
"resampling",
41-
"sandboxed",
42-
"Styleguide",
43-
"styleguide",
44-
"Styleguides",
45-
"styleguides",
46-
"transpiled",
47-
"typedoc",
48-
"typeof",
49-
"untracked",
50-
"vite"
51-
],
52-
"flagWords": [
53-
"hte"
54-
],
55-
"ignorePaths": [
56-
"package.json",
57-
"package-lock.json",
58-
"yarn.lock",
59-
"tsconfig.json",
60-
"node_modules/**"
61-
]
62-
}
2+
"version": "0.1",
3+
"language": "en",
4+
"words": [
5+
"Atrule",
6+
"bitauth",
7+
"bitjson",
8+
"bracketize",
9+
"builtins",
10+
"caddyfile",
11+
"cimg",
12+
"circleci",
13+
"codecov",
14+
"commitlint",
15+
"consts",
16+
"csstree",
17+
"Delineators",
18+
"Deno",
19+
"dependabot",
20+
"editorconfig",
21+
"errored",
22+
"esnext",
23+
"execa",
24+
"exponentiate",
25+
"favicon's",
26+
"favicons",
27+
"globby",
28+
"homescreen",
29+
"iife",
30+
"libauth",
31+
"markdownlint",
32+
"mediastream",
33+
"mkdir",
34+
"Openbase",
35+
"pasteable",
36+
"pluginutils",
37+
"prefetch",
38+
"prettierignore",
39+
"Reademe",
40+
"resampling",
41+
"sandboxed",
42+
"Styleguide",
43+
"styleguide",
44+
"Styleguides",
45+
"styleguides",
46+
"transpiled",
47+
"typedoc",
48+
"typeof",
49+
"untracked",
50+
"vite",
51+
"csp's",
52+
"spoofable"
53+
],
54+
"flagWords": [
55+
"hte"
56+
],
57+
"ignorePaths": [
58+
"package.json",
59+
"package-lock.json",
60+
"yarn.lock",
61+
"tsconfig.json",
62+
"node_modules/**"
63+
]
64+
}

config/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
"sourceType": "module",
8585
"parser": "@typescript-eslint/parser"
8686
},
87+
"ignorePatterns": [
88+
"**/csp-typed-directives.d.ts"
89+
],
8790
"overrides": [
8891
{
8992
"files": [

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ function createViteCspPlugin (...opts: ([PolicyOptions,ViteCspPluginOpts] | [Vit
217217
assignHash('style-src-attr');
218218

219219
cssImportUrls.forEach((v) => {
220-
console.dir(v);
221-
console.dir(idMap);
222220
if (idMap.has(v)) {
223221
const res = idMap.get(v);
224222
if (res) {

0 commit comments

Comments
 (0)