Comments (6)
Yup it should be, i just didn't get around to a few of those features yet (oops forgot!): https://github.com/Shazwazza/Smidge/blob/master/src/Smidge/Models/IWebFile.cs#L12
from smidge.
I'll also allow for programmatic ordering before they are processed
from smidge.
Hi, I've added this functionality in this rev: c06d98e
So now you can supply an Order
property to any IWebFile
, the default is zero and it cannot be less than zero. If you assign an Order
then it will be taken into account before the collection of files is processed.
For a more dynamic approach when using bundles, you can assign a callback. So you bundle definition could look something like:
bundles.Create("test-bundle-1",
new JavaScriptFile("Js/Folder*js"),
new JavaScriptFile("~/Js/Bundle1/a2.js"))
.OnOrdering(collection =>
{
//return some custom ordering
return collection.OrderBy(x => x.FilePath);
});
Let me know if that suits your needs and i'll publish a new version and update the docs too.
from smidge.
Hi, just wanted to check if the above solves your issue so I can close this one (and release a new version)
from smidge.
Hi,
Sorry about that! I remember reading through it and discussing with co-workers about it but I totally forgot to actually write up a reply.
As far as I can tell it looks like it would do the job :) We are a bit off actually migrating the software to a new bundler (it's for when we switch to "core").
Feel free to release if you're happy; When we actually get a chance to do some real proper testing we'll let you know if anything comes up.
Thanks again!
from smidge.
Ok great, I'll close the issue for now and ship a new version. Thanks for the feedback!
from smidge.
Related Issues (20)
- SmidgeLinkTagHelper overrides script preload to CSS HOT 2
- ASP.NET Core - Could not load file or assembly HOT 3
- FileNotFound exception when file exists in cache in Azure - PhysicalFileCacheFileSystem uses Environment.MachineName in cachefolder path which is not reliable in Azure Web Apps HOT 1
- Inline Critical CSS - Umbraco HOT 2
- Issues with AppDomainLifetimeCacheBuster HOT 3
- bundle css file path HOT 2
- (RFC) Support for globbing paterns in bundle creation HOT 1
- Cannot require CSS from a partial. HOT 1
- GetCombinedStreamAsync > GetRequiredFileInfo exception should be handled gracefully to prevent DDoS HOT 2
- [Q] Use at design time HOT 1
- How to automatically compile bundle in debug mode when any changes occur HOT 1
- Script type and other attributes for JavaScript bundle HOT 2
- Smidge interfering with Razor Class Library Umbraco plugin javascript controller ? HOT 3
- Error validating bundle file HOT 1
- Whilst I can get filewatching for JS to work happily, same settings for CSS isn't working? HOT 9
- git folder src\Smidge.Web\Smidge\ missing
- Bundler does not support nested CSS HOT 1
- System.IO.IOException: The process cannot access the file "path/to/file" because it is being used by another process HOT 3
- cache busting effectively doesn't work HOT 1
- Random 500 errors. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smidge.