nuxt
nuxt copied to clipboard
Can we export nuxt project as web components ?
Hi, In vue js, we can export the entire projet as web component and import it in other projets.
Can we export nuxt project as web component ?
As npm module?
@b01110011 yes. Do you know please ?
If I understand your question correctly: Registry your project in npm, then install it and run. Something like
cd node_modules/project_name
npm run build
npm run start
above commands, may write in package.json as script
@b01110011 inside project_name, i put my nuxt project ?
project_name is your name of npm module
maybe my question not claire. I want to export my nuxt project as npm module or web components.
this module must run on localhost? as any other application, but only as npm dependency?
as npm dependency.
then the instruction above
If your module has serverMiddleware you need rewrite it as cjs module (commonJs) or you catch fatal errors