Comments (6)
I've thought about instead of 'default' as the default build file, it uses the slugged version of all the included file basenames appended together. This would do much of what you wanted, and fix issues where people use the plugin without planning build files, and getting confusing results.
from asset_compress.
sure, either way... though i've got a bunch of awkward file names, haven;t played with the sproketsy JS requirements yet
from asset_compress.
Slugging the files should just result in a long filename, which isn't that much different than an MD5.
from asset_compress.
I've added a new slug-branch for this feature, so far I've added the filename slugging in 85aac62. I could see the filenames getting a bit silly long though. Perhaps hashing the files would be better?
from asset_compress.
Hashing is what I chose because the slugged filenames (which was my first instinct) were pretty long and I decided that I really wasn't going to be looking at the filenames much anyway...
from asset_compress.
I agree that the hashes would be better, and I've implemented them in 25c8525.
Thanks for the ideas :)
from asset_compress.
Related Issues (20)
- Editing a SASS partial in v0.20 does not trigger the output CSS file to be regenerated when "always enable controller" is false HOT 2
- Resource is duplicated when defining transitive extensions HOT 7
- Asset Compress helper not adding script files correctly when adding from view in CAKEPHP 2.x. HOT 2
- working with plugin assets is not working HOT 2
- build all js files from source folder to target folder with its same name HOT 1
- Timestamp not generated for CSS HOT 1
- build command throws error with CakePHP 4.0.0 HOT 2
- Filter that blindly executes a command HOT 4
- AssetCompressHelper::url() does not add base name HOT 2
- Turbolinks : Javascript error when debug on HOT 3
- Cannot compile SVG HOT 1
- build files HOT 3
- AssetCompressHelper Not Found HOT 1
- how to use config.ini in coffeescript
- Support for 4.3
- Deprecated method return types when running on PHP 8.1 HOT 1
- Asset
- matthiasmullie/minify Filter HOT 3
- Callback function not being called HOT 1
- 5.x: AssetCompressHelper script() function's return type is not compatible to HTML-Helper of cake 5.x HOT 1
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 asset_compress.