The usage of static files in nuxt

there is a static.js in the project that stores the static variables in the project

I think this file should be placed in the static folder, and import introduces

when using it.

colleagues feel that static files are used as dictionary plug-ins in the plugins folder, and references are also introduced by import

.

I think putting it in plugins violates the original meaning of the plug-in folder

which one should be better


then create a cofig folder (as a browser-side utility class and data dictionary) and write it as a configuration file, in which you can also create a new js, for public functions also introduced by import, my project is written like this, plugins only put plug-ins, static only put static files, css,font, parts of image and ueditor files and so on.

Menu