Mixed bundle

28 views
Skip to first unread message

Denisa Bokar

unread,
Jan 12, 2016, 10:30:13 AM1/12/16
to Cassette
I am trying to create a bundle using Cassette that can support both files and folders. 

I have the following folder structure

  • Scripts
    • Foder 1
      • Folder 2
        • File 1.js
        • File n.js
      • file abc.js
      • file def.js
The order of the files is important and Folder 2 contains over 15 files (it's actually part of a 3rd party library)

What I want to be able to do is to have a bundle of the following nature:
   new ScriptBundle("~/FolderBundle")
                .Include("~/Scripts/Folder1/file abc.js")
                .IncludeDirectory("~/Scripts/Folder1/Folder2/", "*.js", true);

Is it possible?
 
Reply all
Reply to author
Forward
0 new messages