bundle/minify in web forms

Has anyone implemented bundling and minification in asp.net web forms.
I found multiple examples on how do it in asp.net MVC but nothing on asp.net web forms.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technology NinjaCommented:
Hi mikha,

Here is a step by step guide of doing the same: https://blogs.msdn.microsoft.com/rickandy/2012/08/14/adding-bundling-and-minification-to-web-forms/

The central idea is still the same.
1. Create/Define your bundle
2. Register it in Application_Start
3. Reference bundles using Script.Render


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikhaAuthor Commented:
thanks chinmay - I was able to follow and implement the bundling.
only thing I got stuck on was , for styles bundle , i had an import statement in my css file to import fonts as such

@import url('https://fonts.googleapis.com/css?family=Lucida+Sans');

bundler and minifier didn't like it, since this is related issue, should i just copy the css that is on the url above and copy it into a new css file and include that for minification?
Chinmay PatelChief Technology NinjaCommented:
Hi mikha,

Yes. That is one way to solve it.

mikhaAuthor Commented:
Thanks chinmay. That works for me , but now curious as what other way we can solve it ?
Chinmay PatelChief Technology NinjaCommented:
I knew this question would come. Mostly I am sure I could tweak рке @import statement to work with bundling however I am currently not able to do so.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.