1.0.8 • Published 5 years ago

love-cat v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.7

5 years ago

1.0.2

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago