Gathering detailed insights and metrics for @entur/vite-plugin-assets-json
Gathering detailed insights and metrics for @entur/vite-plugin-assets-json
Gathering detailed insights and metrics for @entur/vite-plugin-assets-json
Gathering detailed insights and metrics for @entur/vite-plugin-assets-json
A vite plugin to generate the required `assets.json` file
npm install @entur/vite-plugin-assets-json
Typescript
Module System
Node Version
NPM Version
66.7
Supply Chain
97.4
Quality
87.3
Maintenance
100
Vulnerability
93.6
License
JavaScript (57.5%)
TypeScript (42.5%)
Total Downloads
8,830
Last Day
28
Last Week
209
Last Month
1,754
Last Year
8,830
58 Commits
2 Watching
13 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.9
Package Id
@entur/vite-plugin-assets-json@0.0.9
Unpacked Size
14.52 kB
Size
3.43 kB
File Count
7
NPM Version
10.2.3
Node Version
20.10.0
Publised On
12 Feb 2024
Cumulative downloads
Total Downloads
Last day
-56.3%
28
Compared to previous day
Last week
-71%
209
Compared to previous week
Last month
3%
1,754
Compared to previous month
Last year
0%
8,830
Compared to previous year
31
A vite plugin to generate the required assets.json
file
npm i -D @entur/vite-plugin-assets.json
In vite.config.ts
:
1import { defineConfig } from 'vite'; 2import { assetsJSON } from '@entur/vite-plugin-assets-json'; 3 4export default { 5 plugins: [ 6 assetsJSON() 7 ] 8};
With this .vite/manifest.json
-file:
1{ 2 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Demibold.eot": { 3 "file": "assets/Entur-Nationale-Demibold-28Bm0v4p.eot", 4 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Demibold.eot" 5 }, 6 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Demibold.woff": { 7 "file": "assets/Entur-Nationale-Demibold-1a3cm77m.woff", 8 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Demibold.woff" 9 }, 10 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Demibold.woff2": { 11 "file": "assets/Entur-Nationale-Demibold-cDUpJyLp.woff2", 12 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Demibold.woff2" 13 }, 14 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-DemiboldItalic.eot": { 15 "file": "assets/Entur-Nationale-DemiboldItalic-yEBpPKcn.eot", 16 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-DemiboldItalic.eot" 17 }, 18 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-DemiboldItalic.woff": { 19 "file": "assets/Entur-Nationale-DemiboldItalic-Y6yQ14Oq.woff", 20 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-DemiboldItalic.woff" 21 }, 22 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-DemiboldItalic.woff2": { 23 "file": "assets/Entur-Nationale-DemiboldItalic-90q0AW8J.woff2", 24 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-DemiboldItalic.woff2" 25 }, 26 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Italic.eot": { 27 "file": "assets/Entur-Nationale-Italic-pTmgsEsK.eot", 28 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Italic.eot" 29 }, 30 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Italic.woff": { 31 "file": "assets/Entur-Nationale-Italic-YSbXmt4y.woff", 32 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Italic.woff" 33 }, 34 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Italic.woff2": { 35 "file": "assets/Entur-Nationale-Italic-mSc8IaoD.woff2", 36 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Italic.woff2" 37 }, 38 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Light.eot": { 39 "file": "assets/Entur-Nationale-Light-z8396T2U.eot", 40 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Light.eot" 41 }, 42 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Light.woff": { 43 "file": "assets/Entur-Nationale-Light-hP7i3Kua.woff", 44 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Light.woff" 45 }, 46 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Light.woff2": { 47 "file": "assets/Entur-Nationale-Light-0sMePzCC.woff2", 48 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Light.woff2" 49 }, 50 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-LightItalic.eot": { 51 "file": "assets/Entur-Nationale-LightItalic-aA_wgsur.eot", 52 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-LightItalic.eot" 53 }, 54 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-LightItalic.woff": { 55 "file": "assets/Entur-Nationale-LightItalic-Lk4928vu.woff", 56 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-LightItalic.woff" 57 }, 58 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-LightItalic.woff2": { 59 "file": "assets/Entur-Nationale-LightItalic-uqZLCMou.woff2", 60 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-LightItalic.woff2" 61 }, 62 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Medium.eot": { 63 "file": "assets/Entur-Nationale-Medium-CPz7EuuT.eot", 64 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Medium.eot" 65 }, 66 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Medium.woff": { 67 "file": "assets/Entur-Nationale-Medium-YbVnOm9s.woff", 68 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Medium.woff" 69 }, 70 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Medium.woff2": { 71 "file": "assets/Entur-Nationale-Medium-Q6-l-1of.woff2", 72 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Medium.woff2" 73 }, 74 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-MediumItalic.eot": { 75 "file": "assets/Entur-Nationale-MediumItalic-4MlDlMJy.eot", 76 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-MediumItalic.eot" 77 }, 78 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-MediumItalic.woff": { 79 "file": "assets/Entur-Nationale-MediumItalic-caFl8M7a.woff", 80 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-MediumItalic.woff" 81 }, 82 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-MediumItalic.woff2": { 83 "file": "assets/Entur-Nationale-MediumItalic-EJUHkijb.woff2", 84 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-MediumItalic.woff2" 85 }, 86 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Regular.eot": { 87 "file": "assets/Entur-Nationale-Regular-WQxkPo6E.eot", 88 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Regular.eot" 89 }, 90 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Regular.woff": { 91 "file": "assets/Entur-Nationale-Regular-aVyDRl5G.woff", 92 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Regular.woff" 93 }, 94 "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Regular.woff2": { 95 "file": "assets/Entur-Nationale-Regular-ziADNyB3.woff2", 96 "src": "node_modules/@entur/typography/dist/fonts/Entur-Nationale-Regular.woff2" 97 }, 98 "src/assets/img/dme_upload_description.png": { 99 "file": "assets/dme_upload_description-bUEkxyq8.png", 100 "src": "src/assets/img/dme_upload_description.png" 101 }, 102 "src/assets/img/ducks.png": { 103 "file": "assets/ducks-a7Cd3uSr.png", 104 "src": "src/assets/img/ducks.png" 105 }, 106 "src/assets/img/fare_table_upload_description.png": { 107 "file": "assets/fare_table_upload_description-UXF1umDo.png", 108 "src": "src/assets/img/fare_table_upload_description.png" 109 }, 110 "src/assets/img/gi_upload_description.png": { 111 "file": "assets/gi_upload_description-FYNPeeZN.png", 112 "src": "src/assets/img/gi_upload_description.png" 113 }, 114 "src/assets/img/landscape.png": { 115 "file": "assets/landscape-mAFJUEnW.png", 116 "src": "src/assets/img/landscape.png" 117 }, 118 "src/assets/img/squirrel.png": { 119 "file": "assets/squirrel-G5KecMOq.png", 120 "src": "src/assets/img/squirrel.png" 121 }, 122 "src/main.tsx": { 123 "assets": [ 124 "assets/ducks-a7Cd3uSr.png", 125 "assets/landscape-mAFJUEnW.png", 126 "assets/squirrel-G5KecMOq.png", 127 "assets/fare_table_upload_description-UXF1umDo.png", 128 "assets/dme_upload_description-bUEkxyq8.png", 129 "assets/gi_upload_description-FYNPeeZN.png", 130 "assets/Entur-Nationale-Light-z8396T2U.eot", 131 "assets/Entur-Nationale-Light-0sMePzCC.woff2", 132 "assets/Entur-Nationale-Light-hP7i3Kua.woff", 133 "assets/Entur-Nationale-LightItalic-aA_wgsur.eot", 134 "assets/Entur-Nationale-LightItalic-uqZLCMou.woff2", 135 "assets/Entur-Nationale-LightItalic-Lk4928vu.woff", 136 "assets/Entur-Nationale-Regular-WQxkPo6E.eot", 137 "assets/Entur-Nationale-Regular-ziADNyB3.woff2", 138 "assets/Entur-Nationale-Regular-aVyDRl5G.woff", 139 "assets/Entur-Nationale-Italic-pTmgsEsK.eot", 140 "assets/Entur-Nationale-Italic-mSc8IaoD.woff2", 141 "assets/Entur-Nationale-Italic-YSbXmt4y.woff", 142 "assets/Entur-Nationale-Medium-CPz7EuuT.eot", 143 "assets/Entur-Nationale-Medium-Q6-l-1of.woff2", 144 "assets/Entur-Nationale-Medium-YbVnOm9s.woff", 145 "assets/Entur-Nationale-MediumItalic-4MlDlMJy.eot", 146 "assets/Entur-Nationale-MediumItalic-EJUHkijb.woff2", 147 "assets/Entur-Nationale-MediumItalic-caFl8M7a.woff", 148 "assets/Entur-Nationale-Demibold-28Bm0v4p.eot", 149 "assets/Entur-Nationale-Demibold-cDUpJyLp.woff2", 150 "assets/Entur-Nationale-Demibold-1a3cm77m.woff", 151 "assets/Entur-Nationale-DemiboldItalic-yEBpPKcn.eot", 152 "assets/Entur-Nationale-DemiboldItalic-90q0AW8J.woff2", 153 "assets/Entur-Nationale-DemiboldItalic-Y6yQ14Oq.woff" 154 ], 155 "css": [ 156 "assets/main--EzDuqw6.css" 157 ], 158 "file": "assets/main-D04VMQ0v.js", 159 "isEntry": true, 160 "src": "src/main.tsx" 161 } 162}
the plugin Will produce this assets.json
-file
1{ 2 "js": [ 3 { 4 "value": "/products-frontend-static/assets/main-D04VMQ0v.js", 5 "type": "entry" 6 } 7 ], 8 "css": [ 9 { 10 "value": "/products-frontend-static/assets/main--EzDuqw6.css", 11 "type": "entry" 12 } 13 ] 14}
No vulnerabilities found.
No security vulnerabilities found.