@pixas/bundler-mako
TypeScript icon, indicating that this package has built-in type declarations

0.13.0 • Public • Published

@pixas/bundler-mako

mako bundler for pixas

Installation

npm install @pixas/bundler-mako --save-dev

Usage

// pixas.config.ts
export default {
  bundler: 'mako',
};

Notes

Issues with CSS Modules in mako

  • customize locale class name is not supported, you should use class name as it is.
  • named export is not supported, you should use default export.
/* styles.module.css */
.foo {
  color: red;
}

.foo-bar {
  color: blue;
}
// component.ts
import styles from './styles.module.css';

console.log(styles.foo); // worked

console.log(styles['foo-bar']); // worked

console.log(styles['fooBar']); // not worked

Readme

Keywords

none

Package Sidebar

Install

npm i @pixas/bundler-mako

Weekly Downloads

12

Version

0.13.0

License

MIT

Unpacked Size

8.31 kB

Total Files

10

Last publish

Collaborators

  • kagawa