They perform different operations, but it's often useful to chain them together,
like Unix pipes.
- affix
-loadercould be ommited(省略); - order: right to left;
- *inx
pipe like, chain operation;
For example, if you were using the Less CSS preprocessor, you could use
let cssStyle = require("style!css!less!./file.less");to
- Turn file.less into plain CSS with the Less loader
- Resolve all the imports and url(...)s in the CSS with the CSS loader
- Insert those styles into the page with the style loader
- use the cssStyle object in JS/X file