little-aspnetcore-book icon indicating copy to clipboard operation
little-aspnetcore-book copied to clipboard

Explain how BuildBundlerMinifier works

Open sahinyanlik opened this issue 6 years ago • 3 comments

Hello I try to follow your example. Can you please write somewhere that for building site.js, or site.css we need to add "dotnet add package BuildBundlerMinifier". Otherwise example in this page "https://nbarbettini.gitbooks.io/little-asp-net-core-book/content/chapters/add-more-features/add-todo-items.html" will not work. At least in my case it didn't.

sahinyanlik avatar Sep 20 '17 07:09 sahinyanlik

It sounds like ASP.NET Core is running in Production mode because it isn't finding the ASPNETCORE_ENVIRONMENT variable. When you start up the server, does it say Development or Production?

nbarbettini avatar Sep 23 '17 16:09 nbarbettini

Either way, I'll add a note about BuildBundlerMinifier. 👍

nbarbettini avatar Sep 23 '17 16:09 nbarbettini

Another person who ran into this issue: https://www.gitbook.com/book/nbarbettini/little-asp-net-core-book/discussions/31

Note to self: we need to make it more clear that setting ASPNETCORE_ENVIRONMENT is necessary.

nbarbettini avatar Jan 30 '18 14:01 nbarbettini