UNPKG

mobx--awesome-connect

Version:

Not official React bindings for mobX, but performant and flexible

27 lines (26 loc) 577 B
var path = require('path'); var webpack = require('webpack'); var env = process.env.NODE_ENV; module.exports = { devtool: 'eval', entry: './lib/index', output: { path: path.join(__dirname, 'dist'), filename: 'index.js', publicPath: '/static/', }, plugins: [ new webpack.optimize.OccurrenceOrderPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(env) }) ], module: { loaders: [{ test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/, include: __dirname, }], }, }