react-inline-block
Version:
InlineBlock component for React (style.display == "inline-block")
29 lines (25 loc) • 575 B
JavaScript
function notEmpty(x){ return !!x }
var hot = require('./env').HOT
module.exports = [
{
test: /\.js$/,
exclude: /node_modules/,
loaders: [hot ? 'react-hot' : null, 'babel'].filter(notEmpty)
},
{
test: /\.css$/,
loader: 'style!css?modules&importLoaders=1&localIdentName=[local]---[hash:6]!autoprefixer',
exclude: [
/node_modules/
]
},
{
test: [/\.svg/, /\.woff/, /\.ttf/, /\.eot/, /\.png/, /\.gif/],
loader: 'file-loader?name=[path][name].[ext]'
},
{
test: /\.json$/,
loader: 'json-loader'
}
];