- Created vite.standalone.config.js for optimized bundle building - Added build scripts for standalone bundle generation - Generated three formats: IIFE (28KB), UMD (28KB), ES Module (61KB) - Includes all dependencies: qrcode and imagetracer - Added comprehensive documentation and examples - Created build script with detailed bundle information - Added terser for minification optimization - Fixed package.json dependencies and scripts
28 lines
696 B
JSON
28 lines
696 B
JSON
{
|
|
"name": "qrcodes",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"build:standalone": "vite build --config vite.standalone.config.js",
|
|
"build:utils": "vite build --config vite.standalone.config.js",
|
|
"build:standalone:info": "node scripts/build-standalone.js",
|
|
"preview": "vite preview"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.2.43",
|
|
"@types/react-dom": "^18.2.17",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"vite": "^5.0.8",
|
|
"terser": "^5.24.0"
|
|
},
|
|
"dependencies": {
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"qrcode": "^1.5.3",
|
|
"imagetracer": "^0.2.2"
|
|
}
|
|
}
|