From 7f9fce311042b1d9ad31ccac1cd5fb3998e993e7 Mon Sep 17 00:00:00 2001 From: Benjamin Nolmans Date: Mon, 17 Jun 2019 18:50:34 +0200 Subject: [PATCH] Add warning to prevent es2015 minification errors (#12903) * Add warning to prevent es2015 minification errors * minor tweaks --- aspnetcore/client-side/bundling-and-minification.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aspnetcore/client-side/bundling-and-minification.md b/aspnetcore/client-side/bundling-and-minification.md index 41d3f8308e..1fa92dd4dd 100644 --- a/aspnetcore/client-side/bundling-and-minification.md +++ b/aspnetcore/client-side/bundling-and-minification.md @@ -4,7 +4,7 @@ author: scottaddie description: Learn how to optimize static resources in an ASP.NET Core web application by applying bundling and minification techniques. ms.author: scaddie ms.custom: mvc -ms.date: 05/10/2019 +ms.date: 06/17/2019 uid: client-side/bundling-and-minification --- # Bundle and minify static assets in ASP.NET Core @@ -281,6 +281,9 @@ If Visual Studio and/or the Bundler & Minifier extension aren't available, conve Add a *package.json* file, with the following `devDependencies`, to the project root: +> [!WARNING] +> The `gulp-uglify` module doesn't support ECMAScript (ES) 2015 / ES6 and later. Install [gulp-terser](https://www.npmjs.com/package/gulp-terser) instead of `gulp-uglify` to use ES2015 / ES6 or later. + [!code-json[](../client-side/bundling-and-minification/samples/BuildBundlerMinifierApp/package.json?range=5-13)] Install the dependencies by running the following command at the same level as *package.json*: