I happen to be using Ionic-Vue but I imagine the situation is the same for all users. I have not been able to figure out, what is the build system under the hood when we use ionic serve
? Is Webpack called? Is it handled entirely by Capacitor?
Problem:
I am unable to use dotenv as the fs
module is not found, given this is not a “node” application, but a front end application. I believe dotenv is still frequently used is projects such as these but with a dev
and production
set of environment variables that are injected by webpack.
It looks as though on a typical Vue 3 application .env files are supported “natively”, but that does not appear to be working for me at least.
1 post - 1 participant