43 lines
685 B
JavaScript
43 lines
685 B
JavaScript
var path = require('path')
|
|
|
|
module.exports = {
|
|
entry: path.resolve('src/index.js'),
|
|
output: {
|
|
path: path.resolve('dist'),
|
|
filename: 'emoji-mart.js',
|
|
library: 'EmojiMart',
|
|
libraryTarget: 'umd',
|
|
},
|
|
|
|
externals: [{
|
|
'react': 'React',
|
|
}],
|
|
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
include: [
|
|
path.resolve('src'),
|
|
path.resolve('data'),
|
|
],
|
|
},
|
|
{
|
|
test: /\.svg$/,
|
|
loader: 'svg-inline',
|
|
include: [
|
|
path.resolve('src/svgs'),
|
|
],
|
|
},
|
|
],
|
|
},
|
|
|
|
resolve: {
|
|
extensions: ['', '.js'],
|
|
},
|
|
|
|
plugins: [],
|
|
bail: true,
|
|
}
|