event-visualizer-app
Version:
Event charts app
54 lines (52 loc) • 1.45 kB
JavaScript
var path = require('path');
var webpack = require('webpack');
module.exports = {
context: __dirname,
entry: {
'app': './src/index.js',
'eventchart': './src/plugin.js',
},
devtool: 'source-map',
output: {
path: __dirname + '/build',
filename: '[name].js',
},
module: {
loaders: [
{
test: /\.js$/,
include: [
path.resolve(__dirname, 'src/'),
],
loader: 'babel',
query: {
cacheDirectory: true,
presets: ['es2015', 'stage-2'],
},
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loaders: [
'url-loader?limit=8192'
]
},
],
},
plugins: [
// Plugins to extend webpack functionality (https://webpack.github.io/docs/plugins.html)
/* Example that provides `fetch` as a global variable
new webpack.ProvidePlugin({
'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch'
})
*/
//new webpack.ProvidePlugin({
//$: "jquery",
//jQuery: "jquery",
//"window.jQuery": "jquery"
//}),
],
};