second-bundler
v1.7.0
Published
Bundle the assets for Second-compatible component modules
Downloads
7
Readme
Second Bundler
Bundle the assets for Second-compatible component modules
Installation
npm install --save second-bundler
API
getStyles(moduleName) -> Promise(Bundle)
Builds a bundle containing the core & enhanced styles for the given module and all of its dependencies. Bundle
is an object with core
and enhanced
properties, each containing an array of CSS strings. For example:
{
core: [
'body { color: red; }',
'button { border: 1px solid blue; padding: 1rem; }'
],
enhanced: [
'button { animation: blinker 1s linear infinite; }'
]
}
Arguments
moduleName
(String): A name which, when resolved byrequire()
, returns a Second component.