From 07cac0ee312dd9af3d8b5b5c5353b5db1fce3611 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 3 Jan 2017 14:41:31 -0700 Subject: [PATCH] Minify with Uglify --- package.json | 2 +- webpack.config.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0e3c4bf..25df00f 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,6 @@ "webpack": "^2.2.0-rc.2" }, "dependencies": { - "ol": "^3.21.0-beta.13" + "ol": "^3.21.0-beta.14" } } diff --git a/webpack.config.js b/webpack.config.js index f3e56f0..f3ea126 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,11 @@ +const webpack = require('webpack'); + module.exports = { entry: './main.js', output: { filename: 'bundle.js' - } + }, + plugins: [ + new webpack.optimize.UglifyJsPlugin() + ] };