UNPKG

dpaw-brocket-relay

Version:

Interapp communication via websockets

37 lines (34 loc) 774 B
var path = require('path'); var webpack = require('webpack'); module.exports = { entry: "./src/index.js", // Toggle comments for prod // entry: "mocha!./test/index.js", // and test output: { path: __dirname, filename: "./dist/bundle.js" // prod }, plugins: [ ], 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'), /node_modules\/dpaw-.*/ ] // exclude: /node_modules/ }, { test: /\.json$/, loader: 'json' } ] } };