Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 716 Bytes

README.md

File metadata and controls

28 lines (25 loc) · 716 Bytes

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