dpaw-brocket-prs-plugin
Version:
PRS plugin for the brocket network
37 lines (33 loc) • 674 B
JavaScript
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: "./src/index.js",
// entry: "mocha!./test/index.js",
output: {
path: __dirname,
filename: "./dist/bundle.js",
libraryTarget: "var",
library: "BrocketPlugin"
},
externals: {
'leaflet': 'L'
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{
test: /\.js$/,
loaders: ['babel'],
include: [
path.join(__dirname, 'src'),
path.join(__dirname, 'test'),
],
exclude: /node_modules/
},
{
test: /\.json$/,
loader: 'json'
}
]
}
};