Can I separate the js/css files in the static directory

Viewed 168

Can I separate the js/css files in the static directory.

For example, to ./answer-data/, so that I can use nginx location configuration, or CDN, etc., and reduce the number of access logs.

1 Answers

This functionality can be accomplished using a aliyun CDN plugin or s3 CDN plugin

If you don’t want to use a CDN plug-in, then you need to build the front-end static resources yourself

static file in ui/build directory,if you copy manually, you need to set the PUBLIC_URL variable in advance and then execute make ui

After I make ui, where is static? Can I directly copy this directory and then complete the configuration through ui:public_url:?

thanks