nuxt-community / svg-module

Super simple svg loading module for Nuxt.js
MIT License
340 stars 35 forks source link

SVG is not available via publicPath URL when module is active #60

Open nirazul opened 4 years ago

nirazul commented 4 years ago

Versions nuxt: v2.14.6 node: v14.6.0 netlify-cms: v2.10.61

Reproduction When trying to display an svg under the default public path, the SVG is not visible. For example with the config: { buildModules: [ '@nuxtjs/svg', '@nuxt/content' ] } having an svg file in /static/logo.svg is not available when opening the url /_nuxt/static/logo.svg. When I disable the module @nuxtjs/svg, the file is available again.

Steps to reproduce Run command nuxt dev with and without the module

What is Expected? The file is always available

What is actually happening? The module stops the svg from being served