npm.io
0.0.19 • Published 6 years ago

@mystify/dcontrols

Licence
MIT
Version
0.0.19
Deps
10
Size
51 kB
Vulns
8
Weekly
0

This is a library of controls and components that I use if various projects.

REMEMBER:

in your webpack you need to transpile this project with babel, so you need to do this:

exclude : /node_modules(?!([\/\\]@mystify)).*/,

examples:

const rules = [
  {
    test   : /\.(js|jsx)$/,
    exclude: /node_modules(?!([\/\\]@mystify)).*/,
  }, {
    test   : /[\/\\]+fonts[\/\\]+[\w\-\\\/]*[\w\-]+\.(ttf|eot|svg|woff|woff2?)$/i,
    exclude: /node_modules/,
  }, {
    test   : /\.css$/,
    exclude: /node_modules(?!([\/\\]@mystify)).*/,
  }, {
    test   : /\.less$/,
    exclude: /node_modules(?!([\/\\]@mystify)).*/,
  }
];

const plugins = [
  new HappyPack({
    loaders: [
      {
        loader   : 'babel-loader',
        'test'   : /\.(js|jsx)$/,
        exclude  : /node_modules(?!([\/\\]@mystify)).*/,
      }
    ],
  })
]