UNPKG

sh-input-select

Version:

Select input box superhero theme

54 lines (51 loc) 1.24 kB
var path = require('path'); module.exports = { entry: { 'sh-input-select': './src/index.js', }, output: { path: path.resolve(__dirname, '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: /\.scss$/, loaders: ['style', 'css', 'sass'] }, ], } };