Skip to content

Implement content transformations/dynamic content #7

@phillipluther

Description

@phillipluther

Allows for transforming file contents pre-compilation in the Node API by means of passing an interator that gets called on the content (string) of every source file.

import sass from 'node-sass-extra';
...
sass('src/**/*.scss', {
    data: contents => contents.replace(/^/, '/* added to file */\n\n')
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions