@kkt/plugin-bundle
v5.11.1
Published
A Less loader for KKT. Compiles Less to CSS.
Downloads
5
Readme
@kkt/plugin-bundle
Package the UMD package for developing the React component library.
Usage in kkt Projects
npm install @kkt/plugin-bundle --dev
In kktrc.js
import bundlePlugin from '@kkt/plugin-bundle';
export default (conf, options) => {
conf = bundlePlugin(conf, options);
/**
* Do somthing
*/
return conf;
}
Modify package.json
{
"scripts": {
"start": "kkt start",
"build": "kkt build",
"released": "npm run bundle && npm run bundle:min",
+ "bundle": "kkt build --bundle",
+ "bundle:min": "GENERATE_SOURCEMAP=false kkt build --bundle --mini --no-emptyDir",
"test": "kkt test --env=jsdom",
"test:coverage": "kkt test --env=jsdom --coverage"
},
}