@kkt/plugin-bundle
TypeScript icon, indicating that this package has built-in type declarations

5.11.1 • Public • Published

@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"
  },
}

Package Sidebar

Install

npm i @kkt/plugin-bundle

Weekly Downloads

3

Version

5.11.1

License

none

Unpacked Size

13.8 kB

Total Files

7

Last publish

Collaborators

  • uiwjs
  • wcjiang