Package Exports
- kirbyup
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kirbyup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
kirbyup
Take a lool into the pluginkit folder for an example setup.
The fastest and leanest way to bundle your Kirby Panel plugins. No configuration necessary.
Install
Install it locally in your project folder:
npm i kirbyup --save-devYou can also install it globally.
Usage
{
"scripts": {
"dev": "npx -y kirbyup src/index.js --watch",
"build": "npx -y kirbyup src/index.js"
}
}Development
Rebuild the Panel plugin on any file changes:
kirbyup src/index.js --watchYou can also specify the directories to be watched. By default, if no path is specified, kirbyup watches the directory specified by the input file (src for the example above).
kirbyup src/index.js --watch srcYou can specify more than a single directory:
kirbyup src/index.js --watch src --watch libsProduction
kirbyup src/index.jsThe final panel plugin will be bundled, minified, and written into the current directory as ./index.js.
TODO
- HMR with Vite in lib mode
Credits
License
MIT