0.0.2 • Published 7 years ago

@ubiwhere/ui v0.0.2

Weekly downloads
1
License
-
Repository
-
Last release
7 years ago

@ubiwhere/ui

Getting Started

Install

yarn add @ubiwhere/ui

Before the building, you need a style theme, here we recommend you to pick up @ubiwhere/theme-defaullt.

yarn add @ubiwhere/theme-default

Usage

We are die hard fans of ECMAScript 6, so we recommend you writing code in modern javascript.

import { Button } from ' @ubiwhere/ui';

Config

With webpack, you need additional loaders to build with @ubiwhere/ui.

module: {
  loaders: [
    {
      test: /\.jsx?$/,
      loader: 'babel-loader',
      include: ['path/to/src']
    },
    {
      test: /\.css$/,
      loaders: ['style-loader', 'css-loader']
    },
    {
      test: /\.(ttf|eot|svg|woff|woff2)(\?.+)?$/,
      loader: 'file-loader?name=[hash:12].[ext]'
    }
  ]
}