@mystify/dlib
v1.0.58
Published
A collection of simple shortcut functions I use across various projects. Mainly for ES6, React, and NodeJS
Downloads
73
Readme
dlib
A collection of short cut functions I use in 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)).*/,
}
],
})
]