react-ab-test
Version:
A/B testing React components and debug tools. Isomorphic with a simple, universal interface. Well documented and lightweight. Tested in popular browsers and Node.js. Includes helpers for Mixpanel and Segment.com.
34 lines (33 loc) • 649 B
JavaScript
var webpack = require("webpack");
var path = require("path");
module.exports = {
entry: {
index: path.resolve(__dirname, './www/app.jsx')
},
output: {
path: path.resolve(__dirname, './www'),
filename: 'bundle.js'
},
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel',
query: {
cacheDirectory: true,
presets: ["stage-1", "es2015", "react"]
}
}
],
postLoaders: [
{
loader: "transform?envify"
}
]
},
devtool: 'inline-source-map'
};