antiaris-panto-transformer-resourcedeprecated

Resource transformer for panto

Usage no npm install needed!

<script type="module">
  import antiarisPantoTransformerResource from 'https://cdn.skypack.dev/antiaris-panto-transformer-resource';
</script>

README

antiaris-panto-transformer-resource

NPM version Downloads Build Status Dependency status Dev Dependency status

Resource transformer for panto.

panto.loadTransformer('resource');

panto.pick('**/*.html').pipe(panto.read()).pipe(panto.resource({
    getResourceAlias: res => {
        return 'http://cdn.com/' + res;
    }
})).end();

options

  • getResourceAlias: function