I have the following folder structure
public
source
client
config
webpack.common.js
inside the weback.common.js I want to reference the public folder
path.resolve(__dirname, '../', '../', '../', 'public')
it works but it's very annoying and long, is there is a better way to reference this folder ?