Comments (2)
I figured out that if you set the order to 0 it will be seen as "1" in
View\Page\Config\Renderer.php in Method _afterRenderAssets.
It goes in if(!isset($this->_aAssetOrder[$sSearch]) || $this->_aAssetOrder[$sSearch] == 1) {
from mage2-ordered-assets.
We could workaround it by overriding $oFile->setOrder(1);
to $oFile->setOrder(10);
in View\Asset\PropertyGroup.php and then we can use 1 instead of 0. But this might break some shops, since people who already set their order and update the extension will face bugs because the order gets confused again.
from mage2-ordered-assets.
Related Issues (8)
- Error on install HOT 7
- After installing, magento throws exception: Asset has to implement \Magento\Framework\View\Asset\MergeableInterface. HOT 9
- Still necessary? HOT 4
- PHP Error when using Remote CSS Files
- Invalid Document: Title is Required but missing HOT 1
- Magento 2.2.5 issue with interface HOT 7
- Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'css', attribute 'order': The attribute 'order' is not allowed. 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 mage2-ordered-assets.