@eaze/product-image
Version:
Product Image component
32 lines (30 loc) • 560 B
JavaScript
const webpack = require('webpack')
const path = require('path')
module.exports = {
entry: {
'index': './src/index.js'
},
externals: {
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
},
module: {
rules: [{
test: /\.js$/,
exclude: /node_modules/,
loaders: 'babel-loader'
}]
},
output: {
filename: '[name].js',
path: path.join(__dirname, 'dist'),
publicPath: 'dist/',
library: 'ReactButton',
libraryTarget: 'umd'
},
plugins: []
}