// 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`: ...
2 "name": "vite-plugin-package-config", 3 "version": "0.1.1", 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...
Issues: antfu/vite-plugin-package-configLabels 9 Milestones 0 New issue 1 Open 2 Closed Author Label Projects Milestones Assignee Sort Issues list TypeError: PkgConfig is not a function #6 opened Mar 22, 2023 by qiyingcong 5 tasks done 2 ProTip! Updated in the last three days: updated...
UNPKG 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
Extend Vite config from your package.json `vite` field. - Labels · antfu/vite-plugin-package-config
// 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()]} ...