alena-ilina / retail-ui

React controls to implement standards at https://guides.kontur.ru/

Home Page:http://tech.skbkontur.ru/react-ui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React UI

Build Status Test Coverage

Подключение

Webpack

Необходимо в конфиг webpack добавить следующие лоадеры:

/* ... */
module: {
  /* ... */
  loaders: [
    {
      test: /\.jsx?$/,
      loader: 'babel-loader',
      query: {
        presets: ['es2015', 'stage-0', 'react']
      },
      include: /retail-ui/
    },
    {
      test: /\.less$/,
      loaders: ['style', 'css', 'less'],
      include: /retail-ui/
    },
    {test: /\.(png|woff|woff2|eot)$/, loader: "file-loader"}
  ]
  /* ... */
}
/* ... */ 

Или можно воспользоваться проектом: retail-ui-starter

About

React controls to implement standards at https://guides.kontur.ru/

http://tech.skbkontur.ru/react-ui/


Languages

Language:JavaScript 86.5%Language:CSS 13.5%