biosan-ui-1
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

React ui组件库

Install

npm install BiosanUi --save

Usage

import { Button } from 'BiosanUi';

Config

With webpack, you need additional loaders to build with BiosanUi.

const webpack = require('webpack');

module.exports = {
  entry: {
    src: 'path/to/src'
  },
  output: {
    path: 'path/to/output'
    publicPath: '/public',
    chunkFilename: '[chunkhash:12].js',
    filename: '[chunkhash:12].js'
  },
  plugins: [
    new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production') }),
    new webpack.optimize.UglifyJsPlugin({
      output: {
        comments: false
      }
    })
  ],
  resolve: {
    extensions: ['.js', '.jsx']
  },
  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]'
      }
    ]
  }
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i biosan-ui-1

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

543 kB

Total Files

167

Last publish

Collaborators

  • kehao.qiu