@bem-react/webpack-exp-plugin

0.1.0 • Public • Published

Webpack-exp-plugin

Example - all components:

const webpackExpPlugin = require('@bem-react/webpack-exp-plugin')

module.exports = {
  entry: './src/index.js',
  output: './dist',
  plugins: [new webpackExpPlugin('@yandex/ui', { '*': 'css-modules-exp' })],
}

Example - Button only:

const webpackExpPlugin = require('@bem-react/webpack-exp-plugin')

module.exports = {
  entry: './src/index.js',
  output: './dist',
  plugins: [new webpackExpPlugin('@yandex/ui', { Button: 'new-button-exp' })],
}

Example - Button and Select:

const webpackExpPlugin = require('@bem-react/webpack-exp-plugin')

module.exports = {
  entry: './src/index.js',
  output: './dist',
  plugins: [
    new webpackExpPlugin('@yandex/ui', { Button: 'new-button-exp', Select: 'better-select-exp' }),
  ],
}

/@bem-react/webpack-exp-plugin/

    Package Sidebar

    Install

    npm i @bem-react/webpack-exp-plugin

    Weekly Downloads

    6

    Version

    0.1.0

    License

    MPL-2.0

    Unpacked Size

    19.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • veged
    • awinogradov
    • yarastqt
    • tadatuta
    • yeti-or
    • kilyaa
    • sergcen