I’ve been trying to upload my website files to a hosting site. I’ve got my domain pointed at the Hostinger nameservers now, but my actual domain is displaying the incorrect site – even after updating my files in Hostingers file manager.
the website domain is: henrymiles.co.uk & the preview is: https://henrymiles-co-uk.preview-domain.com
I think that by me using webpack it has complicated things out of the reach of my ability really. But it was something I wanted to try out. If there’s any possibility that someone could help or give some advice, it would be really appreciated. Please also ask for any files or anything else that I may need to post to better illustrate the potential problem, thanks.
Domain version (not displaying site correctly)
Preview version from hostinger (correctly displaying)
I think there could be an issue with where the webpack.config.js is pointing certain files, it might not be grabbing or able to reach the stylesheet as well. I’m really not sure though. I’ve tried changing the..
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
}
to...
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'public_html'),
}
because I thought it is an issue with where the main.js is getting placed. But this doesn’t work for me.
Thanks for any help.
user24838028 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.