Home Manual Reference Source Test Repository
import ProcessorBase from 'reptar/lib/theme/processor-base.js'
public class | source

ProcessorBase

Direct Subclass:

Browserify, Less, Sass

Constructor Summary

Public Constructor
public

constructor(asset: *)

Member Summary

Public Members
public

Path of where to write the asset.

public

Path from where to read the asset.

public
public

What plugins to apply to the processor.

public

Whether we should hash the file name.

Method Summary

Public Methods
public

async process(): Promise

Public API that is used to process the asset.

Public Constructors

public constructor(asset: *) source

Params:

NameTypeAttributeDescription
asset *

Public Members

public assetDestination: string source

Path of where to write the asset.

public assetSource: string source

Path from where to read the asset.

public checksum: * source

public plugins: Object source

What plugins to apply to the processor.

public shouldHash: boolean source

Whether we should hash the file name.

Public Methods

public async process(): Promise source

Public API that is used to process the asset.

Return:

Promise

Returns a promise that resolves with the destination and actual content of the processed asset.