In our app, we use src directory inside the root. We use svg-sprite-module with Nuxt 2, and all the paths work correctly. However, trying to migrate to Nuxt 3 causes the paths to fail. I tried replacing the path values in nitro:init hook with the ones that are resolved at the start of the setup function (inputDir and outDir). It seems to work with the setup where assets folder is under src folder, and the options for this module are set as
Might fix #281
Description
In our app, we use
src
directory inside the root. We usesvg-sprite-module
with Nuxt 2, and all the paths work correctly. However, trying to migrate to Nuxt 3 causes the paths to fail. I tried replacing the path values innitro:init
hook with the ones that are resolved at the start of thesetup
function (inputDir
andoutDir
). It seems to work with the setup whereassets
folder is undersrc
folder, and the options for this module are set asI am not sure how to test this change.