Bundling/minifying CSS/JS in 2.0 preview released templates
See original GitHub issueThe mvc
and razor
templates ship with bundleconfig.json
but I think the integration is broken. I’m not using VS. The 2.0 uses blank platform meta package dependency Microsoft.AspNetCore.All
and cli tool for Secret manager tool Microsoft.Extensions.SecretManager.Tools
and that’s all. Whenever I made a changes in content client code (JS, CSS that is) I would expect new minified version to be created, but the bundler integration is broken.
How am I supposed to use bundler with 2.0 version? With 1/1.1 everytime the build command is used the bundler produces updated content.
Thanks!
dotnet --info
.NET Command Line Tools (2.0.0-preview1-005977)
Product Information:
Version: 2.0.0-preview1-005977
Commit SHA-1 hash: 414cab8a0b
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.0.0-preview1-005977/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0-preview1-002111-00
Build : 1ff021936263d492539399688f46fd3827169983
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
ASP.NET MVC 4 Highlights - Part 2: Bundling and ...
In this installment, I'm going to focus on one of MVC's most useful features: integrated JavaScript and CSS bundling and minification.
Read more >Has something replaced bundleconfig.json in ASP.NET ...
When I create a new ASP.NET MVC Core targeting 2.1 RC1, it doesn't create the bundleconfig.json file which is used for bundling and...
Read more >UI/AspNetCore/Bundling Minification - ABP Documentation
There are many ways of bundling & minification of client side resources (JavaScript and CSS files). Most common ways are: Using the Bundler...
Read more >How to bundle css and minify js file
1) Go to Control Panel -> Design -> Click Download Theme button -> Then choose to download "All Files". 2) Save it into...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just tried this out with a 2.0 MVC app (using a modified
BuildBundleMinifier
- PR)This issue was moved to aspnet/templating#20