You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i add custom router in .nuxt folder, this fragment create relative link, but for .nuxt folder it hasn't dot prefix, for example path to .nuxt/custom-router.js is custom-router.js, webpack try find package
I can't create custom-router.js before @nuxtjs/router check is file exist. Simple module.addTemplate worked only for second time (first time generate file) and writeFileSync create file before nuxt generate files, therefore nuxt delete it. Only one worked variant is generate file with writeFileSync in srcDir
.nuxt
folder, this fragment create relative link, but for.nuxt
folder it hasn't dot prefix, for example path to.nuxt/custom-router.js
iscustom-router.js
, webpack try find packagerouter-module/src/module.ts
Line 50 in 18bb2d3
Example:
custom-router.js
before@nuxtjs/router
check is file exist. Simplemodule.addTemplate
worked only for second time (first time generate file) andwriteFileSync
create file beforenuxt
generate files, thereforenuxt
delete it. Only one worked variant is generate file withwriteFileSync
insrcDir
router-module/src/module.ts
Line 40 in 18bb2d3
Examples of module that overwrite router madhusudanbabar/k-domains and
https://github.com/Kolobok12309/vue-router-webcache/blob/f5411bc54e72efcd78f5ec8153b4a52965f80515/lib/nuxt/index.ts#L40-L46
The text was updated successfully, but these errors were encountered: