如何在Visual Studio 2015中缩小CSS和JavaScript文件 [英] How to minify CSS and JavaScript files in Visual Studio 2015
问题描述
我正在使用Visual Studio构建用于移动设备的Web应用程序,我想知道如何将所有CSS文件缩小为一个文件,并将所有JavaScript缩小为一个缩小文件.
I am building a web application for mobile using visual studio, and I wanted to know how do I minify all my CSS files into one file, and also all my JavaScript to one minified file.
推荐答案
您可以使用Visual Studio 2015 Bundler&缩小符,扩展名 https://visualstudiogallery.msdn.microsoft.com/9ec27da7-e24b-4d56-8064-fd7e88ac1c40 以前在Visual Studio的早期版本中是Web Essentials的一部分,但被分离为它自己的扩展.
You can use the Visual Studio 2015 Bundler & Minifier,extention https://visualstudiogallery.msdn.microsoft.com/9ec27da7-e24b-4d56-8064-fd7e88ac1c40 this used to be apart of Web Essentials in previous versions of Visual Studio, but was separated, into it's own extension.
这篇关于如何在Visual Studio 2015中缩小CSS和JavaScript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!