UNPKG

oboe

Version:

Oboe.js reads json, giving you the objects as they are found without waiting for the stream to finish

30 lines (27 loc) 663 B
const path = require('path') const fs = require('fs') const UglifyJsPlugin = require('uglifyjs-webpack-plugin') const webpack = require('webpack') const version = fs.readFileSync('./build/version.txt', 'utf8') module.exports = { mode: 'production', entry: { 'oboe-browser': './src/entry.js', 'oboe-browser.min': './src/entry.js' }, target: 'web', output: { path: path.resolve(__dirname, 'dist'), filename: '[name].js', library: 'oboe', libraryTarget: 'umd2', libraryExport: 'default', umdNamedDefine: true }, plugins: [ new UglifyJsPlugin({ test: /min/ }), new webpack.BannerPlugin(version) ] }