socioprophet

socioprophet/assetgraph

Optimization framework for web pages and applications

0
0
BSD 3-Clause "New" or "Revised" License

to: { type: 'Png' }, }); ``` ## Manipulating the graph Populating an AssetGraph with all the assets it can find on a given URL or directory on disk: ```javascript var assetGraph = new AssetGraph({ root: 'http://example.com/' }); await assetGraph.loadAssets('http://example.com/'); await assetGraph.populate(); ``` Loading a specific set of files: ```javascript var assetGraph = new AssetGraph({ root: 'http://example.com/' }); assetGraph.loadAssets('index.html', 'foo/bar.css'); ``` Moving all JavaScript assets to a different directory: ```javascript assetGraph.moveAssets({ type: 'JavaScript' }, 'static/js/'); ``` Removing all assets that are not reachable from the Html assets: ```javascript assetGraph.removeAssets({ isDirty: true }); ``` Removing all Html assets and the relations that point at them: ```javascript assetGraph.removeAssets({ type: 'Html' }, true); ``` Inlining all assets that are referenced from a Html or Css asset: ```javascript assetGraph.inlineRelations({ to: { isExternal: false } }); ``` Bundling all JavaScript and CSS assets: ```javascript assetGraph.bundleRelations({ type: { $in: ['JavaScript', '

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

papandreou's profile
papandreou
4641 contributions
Munter's profile
Munter
889 contributions
greenkeeperio-bot's profile
greenkeeperio-bot
197 contributions
depfu[bot]'s profile
depfu[bot]
136 contributions
gustav-olsen-groupone's profile
gustav-olsen-groupone
39 contributions
guybedford's profile
guybedford
31 contributions
notslang's profile
notslang
18 contributions
gustavnikolaj's profile
gustavnikolaj
13 contributions
msiebuhr's profile
msiebuhr
11 contributions
swernerx's profile
swernerx
7 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet