sh-modal-dialog
Version:
Modal Dialog box for React
61 lines (59 loc) • 1.4 kB
JavaScript
var path = require('path');
module.exports = {
entry: {
'sh-modal-service': './src/sh-modal-service.js',
},
output: {
path: './bin',
filename: '[name].js',
library: '[name]',
libraryTarget: 'umd'
},
externals: [
{
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
},
{
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
}
},
{
lodash: {
root: '_',
commonjs2: 'lodash',
commonjs: 'lodash',
amd: 'lodash'
}
}
],
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loaders: ['babel-loader']
},
{
test: /\.html$/,
loader: "file?name=[name].[ext]"
},
{
test: /\.s?css$/,
loaders: ['style', 'css', 'sass']
},
{
test: /\.(ttf|eot|svg|woff)$/,
loader: "url-loader"
},
]
}
};