Package detail

build-plugin-fusion

alibaba899MIT0.1.23

plugin for build scripts while use fusion component

fusion, build-plugin, build-scripts

readme

@ice/plugin-fusion

ice.js plugin for using fusion components.

Usage

import { defineConfig } from '@ice/app';
import fusion from '@ice/plugin-fusion';

export default defineConfig(() => ({
  plugins: [fusion({
    importStyle: true,
    themePackage: '@alifd/theme-design-pro',
    theme: {
      'primary-color': '#fff',
    },
  })],
}));

Options

  • importStyle: Fusion component styles will be automatically imported after enabling.
  • themePackage: Fusion component theme package configuration, if set to an array, multi-theme capability is enabled.
  • theme: theme configuration, overwrite existing themes by setting sass variables.

changelog

Changelog

0.1.23

  • [fix] return sourceMap with custom loader of unicodeLoader

0.1.22

  • [fix] remove alias config of ~ for vite

0.1.21

  • [feat] option disableModularImport for disable modular import of @alifd/next

0.1.20

  • [fix] icon path in win32

0.1.19

  • [fix] theme icon in vite mode

0.1.18

  • [feat] support style import in mode vite

0.1.17

  • [fix] compatible with umd and other targets.

0.1.16

  • [fix] compatible with umd export when external Next

0.1.15

  • [fix] remove useless string in calculated colors
  • [chore] remove err stack when config slient

0.1.14

  • [feat] support cssVariable to enable css variables

0.1.13

  • [fix] bump dependencies version
  • [feat] auto detect sass implementation
  • [feat] external next styles imported by depended components

0.1.12

  • [feat] compatible with webpack 5

0.1.11

  • [fix] error condition of color variables
  • [fix] bump verison of ice-skin-loader
  • [fix] ignore externals rule and babel-plugin-import rule when build umd

0.1.10

  • [feat] support color names

0.1.9

  • [fix] compatible with component dist build

0.1.8

  • [feat] support componentOptions to load h5 component in mobile mode
  • [feat] support option px2vwOptions to pass options to postcssPlugin

0.1.7

  • [feat] support option usePx2Vw to transform css unit

0.1.6

  • [feat] support option importOptions to specify babel-plugin-import options of @alifd/next

0.1.5

  • [feat] support external fusion components

0.1.4

  • [fix] transform icon content to unicode

0.1.3

  • [fix] check WebpackPluginImport before config

0.1.2

  • [feat] support unite next lib

0.1.1

  • [fix] variable file for style plugin