build-plugin-fusion-mobile

1.1.1 • Public • Published

build-plugin-fusion-mobile

Plugin for rax app using Fusion Mobile

中文文档

Usage

build.json

{
  "plugins": [
    [
      "build-plugin-fusion-mobile",
      {
        "extractModules": true,
        "transformCssVariables": true
      }
    ]
  ]
}

config

extractModules

use babel-plugin-import to extract component code for @alifd/meet, @alifd/meet-react

default: true

transformCssVariables

[work in miniapp only] tranform css variables into static values for miniapp css bundles, such as bundle.css.wxss, bundle.css.acss.

default: false

eg:

:root {
  --color-brand-3: #209bfa;
}

.mt-button {
  background-color: var(--color-brand-3);
}

will get

.mt-button {
  background-color: #209bfa;
}

Readme

Keywords

none

Package Sidebar

Install

npm i build-plugin-fusion-mobile

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

13.6 kB

Total Files

16

Last publish

Collaborators

  • lianmin
  • rax-publisher