how does nodejs implement if the path referenced by the development environment is dist/css/xx.css
build/css/xx.css
the project uses ejs templates and express frameworks
how should such requirements be implemented? thank you
how does nodejs implement if the path referenced by the development environment is dist/css/xx.css
build/css/xx.css
the project uses ejs templates and express frameworks
how should such requirements be implemented? thank you
there is something called environment variable.
the most direct way is to change the path referencing css to process.env.CSS_PATH
+'/ css/xx.css'
then use CSS_PATH=dist npm start
to launch
use CSS_PATH=build npm start
to launch
Previous: Use v-else after v-for in VUE uses v-if at the same time
Next: There is a problem with the vue-router jump page. Please see the detailed description.