Skip to content

mcfarljw/replace-brunch

Repository files navigation

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: '!}'
        }
    }
};

About

Adds string replacement support to Brunch.

Resources

License

Stars

Watchers

Forks

Packages

No packages published