Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 419 Bytes

module-bundler.md

File metadata and controls

47 lines (35 loc) · 419 Bytes

Module bundler

Summary

Compile the native @import syntax to single CSS file.


Syntax

@import "foo.bnn";

Examples

Module import

Banana code:

/* module.bnn */
.foo {
  color: #000;
}
/* style.bnn */
@import "module.bnn";

.bar {
  background: #fff;
}

Generated CSS code:

/* style.css */
.foo {
  color: #000;
}

.bar {
  background: #fff;
}