dpaw-brocket-prs-plugin
Version:
PRS plugin for the brocket network
50 lines (46 loc) • 928 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.v0_1_6.js",
libraryTarget: "var",
library: "BrocketPlugin"
},
externals: {
'leaflet': 'L'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
},
mangle: {
except: ['exports', 'require']
}
})
],
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{
test: /\.js$/,
loader: 'babel',
query: {
presets: ['es2015', 'stage-2']
},
include: [
path.join(__dirname, 'src'),
path.join(__dirname, 'test'),
],
exclude: /node_modules/
},
{
test: /\.json$/,
loader: 'json'
}
]
}
};