1.0.8 • Published 3 years ago

love-cat v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

love-cat

Getting Started

安装依赖

$ yarn

本地启动

$ yarn start

通过father-build打包输出escjsumd格式

$ yarn build

使用

按需引入:

import { Alert } from 'love-cat';

安装 babel-plugin-import

yarn add babel-plugin-import --dev

配置.babelrc 或 babel-loader

[
  'babel-plugin-import',
  {
    // 配置love-cat的按需引入
    libraryName: 'love-cat',
    libraryDirectory: 'es',
    style: true,
  },
],

手动引入

import Alert from 'love-cat/es/alert'; // 手动按需加载 js
import 'love-cat/es/alert/style'; // 手动按需加载css

全局引入样式

import 'love-cat/es/index.css';

或;

import 'love-cat/dist/index.css';
1.0.8

3 years ago

1.0.7

3 years ago

1.0.2

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago