mirror of https://github.com/status-im/reagent.git
24 lines
542 B
JavaScript
24 lines
542 B
JavaScript
|
var path = require('path');
|
||
|
var webpack = require('webpack');
|
||
|
|
||
|
var prod = process.env.NODE_ENV === "production";
|
||
|
|
||
|
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './lib/modules.js',
|
||
|
output: {
|
||
|
path: "./target/webpack/",
|
||
|
filename: prod ? 'bundle.min.js' : 'bundle.js'
|
||
|
},
|
||
|
module: {
|
||
|
loaders: [
|
||
|
{ test: /.jsx?$/, loader: 'babel-loader', include: "./lib" }
|
||
|
]
|
||
|
},
|
||
|
plugins: [
|
||
|
new webpack.DefinePlugin(
|
||
|
{'process.env': { 'NODE_ENV': prod ? '"production"' : '"development"'}})
|
||
|
]
|
||
|
}
|