This package is used to use env variables from .env file in your stencil project files.
First, npm install within the project:
npm install @alepop/stencil-env --save-dev
Next, within the project's stencil.config.js file, import the plugin and add
it to the plugins config.
import { Config } from '@stencil/core';
import { env } from '@alepop/stencil-env';
export const config: Config = {
plugins: [
env()
]
};Add .env file in the root of your project
TEST=test stringAfter compilation, process.env.TEST will be replaced by it variable from .env file.