I recommend to add a entry in the resolve section of the webpack config pointing to the root folder like this, so you can avoid relative paths
...
resolve: {
modules: [SRC_DIR, 'node_modules'],
extensions: ['.js', '.jsx', '.css', '.html', '.scss', '.less', '.json'],
alias: {
'@': path.resolve(SRC_DIR, 'js'),
'#': SRC_DIR,
config: path.resolve(SRC_DIR, 'config.js'),
root: path.resolve(__dirname)
}
},
...