Vue cli3 environment variable setting

in the project created by vue cli, set the environment variable and report an error not defined

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)\

</div>
    <!-- built files will be auto injected -->
  </body>
</html>

expect the page title to display "test title", but there is an error "ReferenceError: VUE_APP_TITLE is not defined"

May.14,2021

process.env.VUE_APP_TITLE


wrote an article before: https://codeshelper.com/a/11.

.

is mostly placed in the process.env

Menu