UNPKG

dpaw-brocket-prs-plugin

Version:

PRS plugin for the brocket network

40 lines (36 loc) 740 B
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$/, loader: 'babel', query: { presets: ['es2015', 'stage-2'] }, include: [ path.join(__dirname, 'src'), path.join(__dirname, 'test'), ], exclude: /node_modules/ }, { test: /\.json$/, loader: 'json' } ] } };