mls-elo
Version:
Calculate ELO rankings for Major League Soccer
38 lines (36 loc) • 730 B
JavaScript
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const CompressionPlugin = require("compression-webpack-plugin");
module.exports = {
entry: "./www/index.js",
output: {
path: `${__dirname}/www`,
filename: "index.dist.js"
},
module: {
rules: [
{
test: /\.css$/,
use: [
{ loader: 'style-loader' },
{
loader: 'css-loader',
options: {
modules: true
}
}
]
}
]
},
devtool: 'inline-source-map',
plugins: [
new CompressionPlugin({
asset: "[path].gz[query]",
algorithm: "gzip",
test: /\.(js|html)$/,
threshold: 10240,
minRatio: 0.8
}),
// new UglifyJSPlugin()
]
};