Welcome Guest, Not a member yet? Register   Sign In
New World Frontend Order - how Codeigniter fit in a javascript frontend world?
#24

Hello, another question, I couldn't split the nuxts files in any way (I wanted to put assets in public/ and index.html in app/Views/), so I resorted to put everything in public and then, instead of loading the view, I did "include_once FCPATH.'nuxt-static/route/index.html'" which is ugly. is this the only way or I'm missing something?

Bonus question: it is just me or nuxt.config.js has even problems with modes? I had to do this ugly thing otherwise I wouldn't be able to "npm run dev" (many 404 errors)

Code:
publicPath: process.env.NODE_ENV === 'production' ? '/assets/' : '/_nuxt/',
base: process.env.NODE_ENV === 'production' ? '/nuxt-path/' : '/'

I'm feeling dumb, why everything is so difficult, so cluncky and without a proper documentation?  Cry
Reply


Messages In This Thread
RE: New World Frontend Order - how Codeigniter fit in a javascript frontend world? - by shinseiten - 04-15-2020, 04:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB