nl_tokens: Based on https : // github . com / webpack / webpack / blob / master / lib / DynamicEntryPlugin . js#L29 - L37
pl_tokens: function addEntry ( compilation , context , name , entry ) { return new Promise ( ( resolve , reject ) => { const dep = DynamicEntryPlugin . createDependency ( entry , name ) compilation . addEntry ( context , dep , <mask> , ( err ) => { if ( err ) return reject ( err ) resolve ( ) } ) } ) }