/retail-ui

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

Primary LanguageJavaScript

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