nl_tokens: Return a webpack config object
pl_tokens: function getWebpackConfig ( env = { } , { entry = <mask> . join ( __dirname , 'src' , 'standalone' ) , 'output-path' : outputPath = path . join ( __dirname , 'dist' ) , 'output-filename' : outputFilename = 'build.min.js' , } ) { const webpackConfig = getBaseWebpackConfig ( env , { entry , 'output-filename' : outputFilename , 'output-path' : outputPath , } ) ; const pageMeta = { nodePlatform : process . platform , nodeVersion : process . version , gitDescribe : spawnSync ( 'git' , [ 'describe' , '--always' , '--dirty' , '--long' ] , { encoding : 'utf8' , } ) . stdout . replace ( '\n' , '' ) , } ; return { ... webpackConfig , plugins : [ ... webpackConfig . plugins , new HtmlWebpackPlugin ( { filename : path . join ( outputPath , 'index.html' ) , template : path . join ( __dirname , 'src' , 'index.ejs' ) , title : 'Notifications' , hash : true , inject : false , isRTL : false , ... pageMeta , } ) , new HtmlWebpackPlugin ( { filename : path . join ( outputPath , 'rtl.html' ) , template : path . join ( __dirname , 'src' , 'index.ejs' ) , title : 'Notifications' , hash : true , inject : false , isRTL : true , ... pageMeta , } ) , new HtmlWebpackPlugin ( { filename : path . join ( outputPath , 'cache-buster.txt' ) , templateContent : ( ) => pageMeta . gitDescribe , inject : false , } ) , ] , } ; }