Add existing code

This commit is contained in:
Gennady Grishkovtsov
2018-07-23 12:00:58 +03:00
parent ff7cb590c5
commit 95a9700d50
22 changed files with 10295 additions and 2 deletions

31
webpack.prod.js Normal file
View File

@@ -0,0 +1,31 @@
const path = require('path')
const webpack = require('webpack')
module.exports = {
devtool: '#source-map',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'vue-audio-recorder.min.js',
library: 'VueAudioRecorder',
libraryTarget: 'umd',
libraryExport: 'default',
umdNamedDefine: true
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
compress: {
warnings: true
}
}),
new webpack.LoaderOptionsPlugin({
minimize: false
})
]
}