mp-loader

0.7.20 • Public • Published

mp-loader

A webpack loader that transform mini program stynax into rax component.

Install

$ npm install --save mp-loader

MP(Mini Program) DSL

MP DSL will compile to rax component.

Component({
  data: {
    name: 'world'
  },
  methods: {
    onChange(e) {
      this.setData({
        name: 'rax' 
      });
    }
  }
});
/* index.acss */
.hello {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
 
.title {
  font-size: 40px;
  text-align: center;
}
<!-- index.axml -->
<view class="hello">
  <text class="title" onClick="change">Hello {{name}}</text>
</view>

Readme

Keywords

none

Package Sidebar

Install

npm i mp-loader

Weekly Downloads

3

Version

0.7.20

License

none

Unpacked Size

101 kB

Total Files

76

Last publish

Collaborators

  • chenjun1011
  • yacheng
  • yuanyan
  • zeroling