azproduction / lmd

LMD - JavaScript Module-Assembler for building better web applications :warning: Project is no longer supported :warning:
http://azproduction.ru/lmd/
MIT License
449 stars 27 forks source link

"banner" property #168

Closed azproduction closed 10 years ago

azproduction commented 10 years ago

refs #167

We need a way to define custom banner for bundle. Default value will be: // This file was automatically generated from ...

It also possible to use lmd licence as banner.

var read = require('fs').readFileSync;

var banner = '/*!\n  * ' + read(require.resolve('lmd/LICENCE')).replace(/\n/g, '\n  * ') + '\n  */';

module.exports = {
    banner: banner,
    modules: {
        ...
    }
};

It also possible to use some variables __dirname and __filename in banner template.

leonidborisenko commented 10 years ago

Thanks!