We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should document this primal object to show why it was separated out of the rest.
At least, there should be examples of usage:
const bundle = new BemBundle({path: ...});
The text was updated successfully, but these errors were encountered:
const Bundle = require('@bem/bundle'); const bundle = new Bundle({path: './pages/index.bemjson.js'}); Bundle.isBundle(bundle); // true bundle.bemjson; // {block: 'a', mods: {m: v}} bundle.decl; // [{entity: {block: 'a'}, tech: null}, {entity: {block: 'a', mod: {name: m, val: v}, tech: null}] bundle.name; // "index" bundle.path; // "./pages/index.bemjson.js"
const intoStream = require('into-stream'); const Bundle = require('@bem/bundle'); const Builder = require('gulp-bem-bundle-builder'); const builder = new Builder({ /* ... */ }); intoStream([ // Generating virtual bundles new Bundle({path: './pages/index.bemjson.js'}), new Bundle({path: './pages/page1.bemjson.js'}), new Bundle({path: './pages/page2.bemjson.js'}) ]) .pipe(builder({ /* ... */ ));
Sorry, something went wrong.
No branches or pull requests
We should document this primal object to show why it was separated out of the rest.
At least, there should be examples of usage:
The text was updated successfully, but these errors were encountered: