replace-brunch

2.0.0 • Public • Published

replace-brunch

Build Status

Usage

Install the plugin via npm with npm install --save-dev replace-brunch.

Configuration

module.exports = {
    plugins: {
        replace: {
            encoding: 'utf8',
            log: true,
            mapping: {
                'date': (new Date()).toISOString(),
                'timestamp': Math.floor(Date.now() / 1000)
            },
            paths: [
                'public/index.html',
                'public/js/app.js'
            ],
            replacePrefix: '{!',
            replaceSuffix: '!}'
        }
    }
};

/replace-brunch/

    Package Sidebar

    Install

    npm i replace-brunch

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • mcfarljw