1.0.0 • Published 6 years ago
dotenv-quokka-plugin v1.0.0
Quokka.js plugin to enable environment variables to be loaded from a .env file.
Install
npm install dotenv-quokka-pluginNote that you may install the plugin to the Quokka config folder instead of installing it to your local project.
Configuration
Specify the plugin in Quokka configuration settings:
{
"plugins": ["dotenv-quokka-plugin"]
}By default, the plugin will load the .env in your project directory.
If you need to, you may change the .env file to load:
{
"plugins": ["dotenv-quokka-plugin"],
"dotenv": {
"path": ".env.test"
}
}Note: if the dotenv.path is a relative path, it will be located relative to your project directory.
1.0.0
6 years ago