I've read through the deployment docs and forgive me for this, but I hope this will be relatively easy but I've been struggling for a while now.
I can deploy and launch the VueJS Hackernews application on my Plesk server, but looking at the server.js files, they are written in es2015.
I have the NodeJS extensions installed and have directed the startup file to .nuxt/server.js (with HN it works when sending to /server.js so I've assumed that's the file to point to). The website works well. I know it doesn't use Nuxt, I just thought it may be a useful thing to say.
I have created a couple of very basic pages locally with Nuxt and am trying to deploy it. I get the error "Unexpected token import", pointing to the issue that the server doesn't support es2016. The extension uses Phusion Passenger (not sure if it's helpful).
Is there a config option I'm missing which will recompile the server.js and other default js files in the .nuxt folder to es2015? I've tried the the babel settings in the config file, but changing that doesn't appear to affect these files.
I'm sure you can tell I'm very new to this and I just don't know if I just need es2016 supported on my server somehow, or perhaps I can't do it with NodeJS Plesk Extension and instead I need to look into deploying static files.
If it helps, this is my entire repo at the moment: https://github.com/silverbackis/StarterWebsite
I've setup the NodeJS Extension as follows:
I've tried setting custom environment vars HOST and NPM_CONFIG_PRODUCTION but they don't seem to make a difference on my setup.
I'd appreciate any help if at all possible. Thanks.
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c862">#c862</a>)</em></sub></div>