How can I override the main field of package.json like in bower?
"overrides": {
"highcharts": {
"main": "highcharts.js"
}
}
Try creating an alias with the same name as the module in your Webpack config.
module.exports = {
...
resolve: {
alias: {
"highcharts": path.resolve(__dirname, "path/to/file")
}
},
...
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With