@bb-cli/webpack-build v1.6.1
Modules
Functions
@bb-cli/webpack-build : Object
Lib for building frontend code for Backbase Architecture
Example
import build { config } from '@bb-cli/webpack-build';
- @bb-cli/webpack-build : Object
- ~BuiltItem : Object
- ~CXPItem : Object
@bb-cli/webpack-build~BuiltItem : Object
A object that describes an item that has been compiled.
Kind: inner typedef of @bb-cli/webpack-build
Extends: CXPItem
Properties
Name | Type | Description |
---|---|---|
distDir | string | The path to the built code on the file system. |
@bb-cli/webpack-build~CXPItem : Object
An object that describes a catalog item in CXP Manager.
Kind: inner typedef of @bb-cli/webpack-build
Properties
Name | Type | Description |
---|---|---|
name | string | The CXP item name. |
type | string | The CXP item type. |
version | string | The CXP item version. |
srcDir | string | The path to the item's source on the file system. |
build(items, items, output, plugins) ⇒ Promise.<Array.<BuiltItem>>
Build CXP items with webpack.
Kind: global function
Since: 0.3.0
Param | Type | Description |
---|---|---|
items | Array.<CXPItem> | Items to build |
items | Array.<CXPItem> | Items that are already built (dependencies) |
output | string | Path to build in (will be ${output}/${item.name}/...) |
plugins | Array.<string> | List of node modules or files to load as config plugins. |
theme()
Kind: global function
buildConfig(items, items, output, plugins) ⇒ Object
Get a webpack config suitable for building Backbase items with webpack
Kind: global function
Returns: Object - config Webpack config
Since: 0.3.0
Param | Type | Description |
---|---|---|
items | Array.<CXPItem> | Items to build |
items | Array.<CXPItem> | Items that are already built (dependencies) |
output | string | Path to build in (will be ${output}/${item.name}/...) |
plugins | Array.<string> | List of node modules or files to load as config plugins. |
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago