简体   繁体   中英

Compile Visual Studio project by minifying css and js

I have the following doubt: I have a project in Vb.net and I would like the compilation of the project to be minified and unified css files (App_Themes) on one side and js linked (in a common folder).

App_Themes/FrontEnd/general.css
App_Themes/FrontEnd/main.css
App_Themes/FrontEnd/css.css

Js/jquery.js
Js/main.js

Would this be possible in any way? Thank you :)

You can try using gulp for that. There are many plugins on npm to help you such as gulp-uglify for CSS and Javascript minification.

Hope I helped! :)

You Can Use Gulp . Gulp is a task/build runner for development. It allows you to do a lot of stuff within your development workflow. See also this .

Hello again The problem I have is that the css are linked through App_Themes. I think there is nothing that allows to do the minification and unification of styles when compiling by topic right?

Thank you for your help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM