Skip to content

Add banner option#3

Open
martypdx wants to merge 1 commit intogobblejs:masterfrom
martypdx:master
Open

Add banner option#3
martypdx wants to merge 1 commit intogobblejs:masterfrom
martypdx:master

Conversation

@martypdx
Copy link
Copy Markdown

Allows inclusion of a banner at the top of concatenated files:

var register = components
    .transform('import', {
        assign: function ( filename, importedAs ) {
            return `Ractive.components['${filename}'] = ${importedAs};`;
        }
    })
    .transform('concat', {
        banner: 'import Ractive from \'ractive\';\n\n',
        dest: 'components.js',
        writeSourcemap: false
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant