Looking for old forum posts and information? View the old forum archive here ยป
Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

A static copy of our previous forums website is available online for reference. Click here to access the forum archive.

Learn more about...

AspDotNetStorefront
DotFeed

How do i bundle and minify css and js Files

I have the js and css files bundling but, they don't minify.  It's just the files concatenated with all the whitespace that's supposed to be taken away when a file is minified.

 

I already did the   <add key="EnableBundlingAndMinification" value="true" />

any help is appreciated.
aspdnsf v10.0.1
asked Aug 18 in General by zurc (165 points)

1 Answer

+1 vote
 
Best answer
Hi zurc, usually this means you have an error in the css that isn't allowing the css to minifiy properly.  Please look at the top of the bundled file for a message like "parse error at line xxxx".  You'll need to trace the error to one of the css file lines.

Visual studio can automatically find issues in your css, so you can copy your bundled file into a "test.css" file, load that up in Visual Studio and check the Error List window to see if it spots errors in the css.

Alternatively, put it into a validator like this: https://jigsaw.w3.org/css-validator/
answered Aug 21 by Vortx Duncan (530 points)
selected 2 days ago by zurc
...