Skip to content

Conversation

martypdx
Copy link

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