stremio-web/webpack.config.js
NikolaBorislavovHristov 2345d76d92 Initial commit
2018-06-04 15:56:17 +03:00

39 lines
No EOL
953 B
JavaScript

const path = require('path');
const HtmlWebPackPlugin = require('html-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
module.exports = {
entry: './src/index.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
}
]
},
plugins: [
new HtmlWebPackPlugin({
template: './src/index.html'
}),
new UglifyJsPlugin({
test: /\.js$/,
uglifyOptions: {
mangle: true,
output: {
ecma: 5,
comments: false,
beautify: false,
wrap_iife: true
}
}
})
]
};