json-faker
Version:
This application creates json with fake contextual data. It takes input as a template.
31 lines (29 loc) • 768 B
JavaScript
var path = require('path');
var webpack = require('webpack');
var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin");
module.exports = {
entry: path.resolve(__dirname, './src/json-faker.js'),
output: {
path: path.resolve(__dirname, 'build'),
filename: 'json-faker.js',
library: ['jsonFaker']
},
node: {
fs: "empty"
},
module: {
loaders: [{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015']
}
}]
},
plugins: [
// new webpack.optimize.UglifyJsPlugin({
// compress: { warnings: false }
// })
]
}