Add warning to prevent es2015 minification errors (#12903)

* Add warning to prevent es2015 minification errors

* minor tweaks
pull/12910/head
Benjamin Nolmans 2019-06-17 18:50:34 +02:00 committed by Scott Addie
parent 68db368a15
commit 7f9fce3110
1 changed files with 4 additions and 1 deletions

View File

@ -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*: