1.7.0 • Published 5 years ago

second-bundler v1.7.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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 by require(), returns a Second component.
1.7.0

5 years ago

1.6.0

6 years ago

1.5.2

6 years ago

1.5.1

7 years ago

1.2.3

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago