mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
31 lines
719 B
JavaScript
31 lines
719 B
JavaScript
|
var path = require('path');
|
||
|
var webpack = require('webpack');
|
||
|
module.exports = {
|
||
|
entry: ['./src/Main.js'],
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, './dist'),
|
||
|
filename: 'build.js',
|
||
|
library: ['VueMqtt'],
|
||
|
libraryTarget: 'umd'
|
||
|
},
|
||
|
devtool: "source-map",
|
||
|
plugins: [
|
||
|
new webpack.optimize.UglifyJsPlugin({
|
||
|
compress: {
|
||
|
warnings: false
|
||
|
}
|
||
|
})
|
||
|
],
|
||
|
module: {
|
||
|
loaders: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
loader: 'babel-loader',
|
||
|
query: {
|
||
|
presets: ['es2015']
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|