// package.json{// ..."vite": {"resolve": {"alias": {"~/":"src/"} },"build": {"output":"dist/"} } } Install npm i -D vite-plugin-package-config Add plugin to yourvite.config.ts: // vite.config.tsimportPkgConfigfrom'vite-plugin-package-config'exportdefault{ plugins: [ Pk...
Extend Vite config from your package.json vite field.// package.json { // ... "vite": { "resolve": { "alias": { "~/": "src/" } }, "build": { "output": "dist/" } } }Installnpm i -D vite-plugin-package-configAdd plugin to your vite.config.ts:...
// package.json{// ..."vite":{"resolve":{"alias":{"~/":"src/"}},"build":{"output":"dist/"}}} Install npm i -D vite-plugin-package-config Add plugin to yourvite.config.ts: // vite.config.tsimportPkgConfigfrom'vite-plugin-package-config'exportdefault{plugins:[PkgConfig()]} ...
11"vite": { 12"resolve": { 13"alias": { 14"~/": "src/" 15} 16}, 17"build": { 18"output": "dist/" 19} 20} 21} 22``` 23 24## Install 25 26```bash 27npm i -D vite-plugin-package-config 28``` 29 30Add plugin to your`vite.config.ts`: ...
4 "description": "Extend Vite config from package.json field", 5 "keywords": [ 6 "vite-plugin" 7 ], 8 "homepage": "https://github.com/antfu/vite-plugin-package-config#readme", 9 "bugs": { 10 "url": "https://github.com/antfu/vite-plugin-package-config/issues" 11 }...
Extend Vite config from your package.json `vite` field. - Issues · antfu/vite-plugin-package-config
vite-plugin-package-config/LICENSE Version: 1.09 kBPlain TextView Raw 1MIT License 2 3Copyright (c) 2021 Anthony Fu <https://github.com/antfu> 4 5Permission is hereby granted, free of charge, to any person obtaining a copy 6of this software and associated documentation files (the "Software...
9 labels Sort bug Something isn't working documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed invalid This doesn't...
Security Insights Additional navigation options main 1Branch 4Tags Code README Code of conduct MIT license vite-plugin-package-config Extend Vite config from your package.jsonvitefield. // package.json{// ..."vite":{"resolve":{"alias":{"~/":"src/"}},"build":{"output":"dist/"}}} ...