Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundle directory using Visual Studio Web Essentials

Is it possible to bundle all javascript (or css) files in a directory using Web Essentials? Similar to how System.Web.Optimizations bundling can take a directory?

I tried:

<directories>
   <directory>/myDirectory</directory>
</directories>

but this doesn't seem to work.

I need to bundle all files in a folder for an AngularJS app, and it's nice to not have to worry about adding each new file.

I want to use the Web Essentials bundling so that I can generate source maps.

like image 348
JoshMB Avatar asked Aug 13 '14 00:08

JoshMB


1 Answers

It's not possible to have WebEssentials "watch" a folder for changes and automatically include them, nor is it possible to use wildcards or directory paths.

https://webessentials.uservoice.com/forums/140520-general/suggestions/4201808-bundling-folders-instead-of-individual-files

It looks like the author has released a new extension for VS2015 that does have these features, but if you're on a version of VS prior to that then you're out of luck.

like image 152
Hades Avatar answered Oct 17 '22 07:10

Hades