Beta 7 with some repo names changed.
This commit is contained in:
1 parent
0f7b40cca7
commit
963c19493a
3408 files changed
+462217
-15516
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
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 = {
|
||||
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)
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user