Skip to content

Instantly share code, notes, and snippets.

@Munter
Last active December 19, 2016 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Munter/a1e9e541dd76d48c0e0da74a413fcf9d to your computer and use it in GitHub Desktop.
Save Munter/a1e9e541dd76d48c0e0da74a413fcf9d to your computer and use it in GitHub Desktop.
var Assetgraph = require('assetgraph');
new Assetgraph({
root: 'myProject'
})
.logEvents()
.lodAssets('index.html')
.populate({
followRelations: { crossorigin: false }
})
.inlineRelations({ to: { type: Assetgraph.query.not('Html'), isLoaded: true }})
.writeAssetsToStdout({
type: 'Html',
isInitial: true
})
.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment