score:1

i am not sure about what you need, but webpack is your building system, so it plays at an lower level from what do you want. if you want to include functions in various file, you need to include the file in wherever you need it:

global.js

module.export = {
 func1: ..,
 func2: ..
}

file where you need a function:

var globals = require('path/to/global.js')

Related Query

More Query from same tag