2016-05-31 14:36:52 +00:00
|
|
|
var path = require('path')
|
2016-12-01 01:59:56 +00:00
|
|
|
var pack = require('../package.json')
|
|
|
|
var webpack = require('webpack')
|
2016-05-31 14:36:52 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: path.resolve('example/index.js'),
|
|
|
|
output: {
|
2016-07-29 16:07:24 +00:00
|
|
|
path: path.resolve('example'),
|
|
|
|
filename: 'bundle.js',
|
2016-05-31 14:36:52 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
module: {
|
|
|
|
loaders: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
include: [
|
|
|
|
path.resolve('src'),
|
|
|
|
path.resolve('data'),
|
|
|
|
path.resolve('example'),
|
|
|
|
],
|
|
|
|
},
|
2016-06-02 15:26:48 +00:00
|
|
|
{
|
|
|
|
test: /\.svg$/,
|
|
|
|
loader: 'svg-inline',
|
|
|
|
include: [
|
|
|
|
path.resolve('src/svgs'),
|
|
|
|
],
|
|
|
|
},
|
2016-05-31 14:36:52 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
resolve: {
|
|
|
|
extensions: ['', '.js'],
|
|
|
|
},
|
2016-12-01 01:59:56 +00:00
|
|
|
|
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
EMOJI_DATASOURCE_VERSION: `'${pack.devDependencies['emoji-datasource']}'`,
|
|
|
|
}),
|
|
|
|
],
|
2016-05-31 14:36:52 +00:00
|
|
|
}
|