Assets and static directories in the vue project

problem description

after generating a project with vue-cli, both the assets directory and the static directory store static files, so what kind of static files should be placed in the assets directory and what kind of static files should be placed in the static directory?

May.25,2021
During compilation,

assets: is understood by webpack as module dependencies and only supports relative paths. Assets places files that may change.
static: where third-party files are stored will not be parsed by webpack, but will be copied directly to the final package (default is dist/static). These files must be referenced using absolute paths. Static will not change

.
Menu