{"_id":"mix-env-file","_rev":"7-a4fc723c19fd3b0d6e4a3670f91ca48e","name":"mix-env-file","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"mix-env-file","version":"0.0.1","description":"Allows Laravel Mix to use to a specific .env file","main":"mix-env-file.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/johnwilhite/mix-env-file.git"},"keywords":["laravel","mix","dotenv","env","environment"],"author":{"name":"John Wilhite"},"license":"MIT","bugs":{"url":"https://github.com/johnwilhite/mix-env-file/issues"},"homepage":"https://github.com/johnwilhite/mix-env-file#readme","gitHead":"1edc11005e83ca51cd79a96f64b7f7f82e512a3f","_id":"mix-env-file@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"johnwilhite","email":"jbwilhite@gmail.com"},"dist":{"integrity":"sha512-I1/xZxZsQ9lu4Jzb0jslqlKNZ468JSIKHSVS8lPodijw3EpsdemnCpgvXm/HQwss0+zm9HA7VARt4aFqII3zhQ==","shasum":"085a9ec63c1b7364579944911013686e8823b092","tarball":"https://registry.npmjs.org/mix-env-file/-/mix-env-file-0.0.1.tgz","fileCount":3,"unpackedSize":2060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSz8RCRA9TVsSAnZWagAAdwgP/iwm5M9DKiS0FSgchGKk\njmxtGsQSqYa1Lp3LMT0wlXrZcY2W8Xne44hR2btWhRzY5VpjHZ1gP37+wTcn\nmWZ4RvwGRnwVYKGErTO6cnETEcqcC461KPrC/qoI66yLiRDFfjsQOHS1qxef\nyYFWnACGZJe77c7nI7MaFRgrrPtLziNSFVtPYWHOyegeaaJtXCYiZx1xq1QR\nRz3iwbliVw1bHkEKE37MyfmHOOvhZoOSvTrcMmkZLeFnAvfL6YKPenxqbdaX\nxVa3CefyPi+fKTuTXUvtR/KI062HftsRyf0aroYykADLkBVo4UkhAxsry5nz\nvzjQMOefPaXSAS21+o9cJUTTHmjyP2+z9Ba1sZjokCSQz5NEgXEpX+S9iVqt\njGUk2DzWrTPa6YYDNAerpfY/2wt4b1jD1helkqJWAl4R3rn4i94blicBEm2W\nLV/obKB3RKSm9BPWsm1+1Flgv5meRgTE5CdIW6hrRy9EEGsy0z8okSYS624r\nK4auGPkFChw4ud2b0FGXws75dZ5iXZBBIshozCuyXBK8LWNeFPn5Phz6ZEXc\nu/4ZUN3GhCrwG+eehFpCK9m2WyGQrizFnXLX4Mp/KIvcegw3MCdtbsk1IeRC\nhimwc22OcpbKqhfe6sh9p9iiCaALluFcSIVR3NnfouFxxyP32ppph/ECnU8m\nAjM3\r\n=rHST\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzz144czyOhAyGAXeBCBWWSf3v6zOnIu2cv3zJpx1JegIgYwbEdDMDzRuEabc4kIbUFosd7JQABg3kfu7BQCLUhio="}]},"maintainers":[{"name":"johnwilhite","email":"jbwilhite@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mix-env-file_0.0.1_1548435217190_0.6925766176736061"},"_hasShrinkwrap":false},"0.1.0":{"name":"mix-env-file","version":"0.1.0","description":"Allows Laravel Mix to use to a specific .env file","main":"mix-env-file.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/johnwilhite/mix-env-file.git"},"keywords":["laravel","mix","dotenv","env","environment"],"author":{"name":"John Wilhite"},"license":"MIT","bugs":{"url":"https://github.com/johnwilhite/mix-env-file/issues"},"homepage":"https://github.com/johnwilhite/mix-env-file#readme","gitHead":"cec8bfad71ab078817e6aead606750bdca15b661","_id":"mix-env-file@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"johnwilhite","email":"jbwilhite@gmail.com"},"dist":{"integrity":"sha512-HTmzIMBDvz5OE5ApFGP9kJY4+mCp7CzD4dyGmnfjYDqeEwZGZZh+fA/G1UI98I+A0FepOnXlTXoy2bGp4C9Vlw==","shasum":"9ff26efe45e18570d28a987612ab17e99c25d20d","tarball":"https://registry.npmjs.org/mix-env-file/-/mix-env-file-0.1.0.tgz","fileCount":3,"unpackedSize":2593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpRXfCRA9TVsSAnZWagAA1SoP/ieR7WqRCq+fwjDwAb7q\n3yhOpJjFbP6nhO7Zvxa6Qerd/F0x10OIsE25e31RzMNXKB3Rrcv/jjGwiXo+\n9lvUQrXt7hYL/LZuCEswvGo0JM95BOJXZLwBhRMDUNVYFG29ZxTPEx0zZ0+9\ne+01JAY2xZ2UppSX9CHCOACuaxKsF1GkWw+XXv5KnXb3bGQ7uBHcssuiU5Df\ni/YRZt7T8Aj6JNHjtLsAHs4vnHd+47N5bwgg5FNOhS5kKLR1Nt5WGdkFsQBs\nlAvz7NF9lj72t9psn1iK3s02oUtWQXfQDMXcI/wioFMd6i0EJGE0f2dzSHNJ\n5IytJezSsyh0CrKIWMZE6h0zhKtG5f0hZCSb/fyBkWVSc8fplGXcvhyePabu\nvlal3IlgijSO2BO2GPMhdKkzYDQB1by5BC7+xoN9T4K+KD/jtjpSpNulFuFn\nHJI0qGwiwr3n2phET+oFYL7xlI045mDVYy2M3DkaoyWwMeqLKeos5y7p8Fly\nzKJD+XFvZV2lvHSX5lJxHm/XitWqJsR0CNcuEdQhWM70DlZljeGD3tS9Hsw3\nQS+QEI22xn5rOo7vIs07m/LMqVTvJr1cEc/HKFBlBSBfrqgDlZAbvssTsKv3\nPDNFpMA2Nz/0zJ9fNQtYB3lx9yGCg1ks0PCDK/BJpGrZCpXh5e9SOJpPRQ1o\nGAut\r\n=Ol+o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHI0W1CCRmAzJ270gaxZgqgPjMhDxlGz1jTZhV8Epr39AiBXsf/14cKYLjLTZru4G2Pf2L4m29QD3+bKq9yuR6epgw=="}]},"maintainers":[{"name":"johnwilhite","email":"jbwilhite@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mix-env-file_0.1.0_1554322910594_0.11615994719589517"},"_hasShrinkwrap":false},"0.1.1":{"name":"mix-env-file","version":"0.1.1","description":"Allows Laravel Mix to use to a specific .env file","main":"mix-env-file.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/johnwilhite/mix-env-file.git"},"keywords":["laravel","mix","dotenv","env","environment"],"author":{"name":"John Wilhite"},"license":"MIT","bugs":{"url":"https://github.com/johnwilhite/mix-env-file/issues"},"homepage":"https://github.com/johnwilhite/mix-env-file#readme","gitHead":"bcdf317d1b285e82a4347e7b78c20a0a88e18a9e","_id":"mix-env-file@0.1.1","_nodeVersion":"15.1.0","_npmVersion":"7.0.8","dist":{"integrity":"sha512-bfeOoRlW4J4aS17Qu3XROkWXR/IN5/j/3aSKeQ2qBjFR8tXYbwY8wnO0w0Xhrfv9EHCbBUihNa0YBOAy2jm7dg==","shasum":"64581bac4d70c7a12ff84dc2b3f5a71ff50555ca","tarball":"https://registry.npmjs.org/mix-env-file/-/mix-env-file-0.1.1.tgz","fileCount":3,"unpackedSize":2899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQUkECRA9TVsSAnZWagAAvAEQAIJ5E+0t7lo02OSKkSGK\nle/+UkjMMlb5stdoGDbvR3QdKmDbqlp3dRxM+ZwA8AyleO6tCZTIP2nK38u+\nFTKXUO4lAW3XKFVnh4rTxfvHbgsu9NrBuC9VzHj01I9wdJLto5z9OD4TcEvr\nujfg7Aupzh6gUGMit2+pUO6YlLS9FXG3EjGT99StLSLxp8iOcGtQ/3Afv04J\n1vdoRPStxMhw1oQR0cfSe2DHxrJrRHvLU3XhIMnnBWfJNbwOaFvVRmlWh8m9\nOW22di/FrV0B4N8fBwwJuhw5HpZcMZtrtMTj3ovbOesPeJgkpxSQPZdeX6km\nP2agx5ST4YhlzTrFT9nqCfu0LBLgVtuzgx//BFGMcrrDbDLCaEBEs1dF+4kF\nRIVx2+Xkbjpph5avF9IMqfh+X4FMeXp1MTK1ZHqONgksBQjMAZAukckkNl48\n0Hx9bpvYpbX1/o06utQvv3MUf4KNg2yqQ7GdaLvOmCoKoqOtXzGHMGQf4785\nZjZC8bat4OvH2Rcjb/4JnALPlwCb4rDnETOEn+ss3bsyBCO8D5KbjGu1/nph\nzukkemUzK3XONtss57Jsd3Iy6/sjkG1PWTUxYVdN2VojSqGPsd1fwWZtlkjD\nSEJ9KrK+QEOWYh1dMOBGM//Wy08O1YPWFoHFLVplIW4x7gzU6KzR4WjxNDhE\nJFbk\r\n=4b6c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDBsKSGFaqLv8diJ61rPqadd8bjroPk7mwqmaDLO7xkAIgXCmRZLQ16jJOo/Fy1H9LKFsbEE7TG41LhibqLPOTp/E="}]},"_npmUser":{"name":"johnwilhite","email":"jbwilhite@gmail.com"},"directories":{},"maintainers":[{"name":"johnwilhite","email":"jbwilhite@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mix-env-file_0.1.1_1614891268283_0.8755714847939231"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-25T16:30:27.895Z","1.0.0":"2019-01-25T16:30:28.003Z","modified":"2022-05-09T11:40:37.463Z","1.0.1":"2019-01-25T16:49:16.007Z","0.0.1":"2019-01-25T16:53:37.299Z","0.1.0":"2019-04-03T20:21:50.792Z","0.1.1":"2021-03-04T20:54:28.392Z"},"maintainers":[{"name":"johnwilhite","email":"jbwilhite@gmail.com"}],"description":"Allows Laravel Mix to use to a specific .env file","homepage":"https://github.com/johnwilhite/mix-env-file#readme","keywords":["laravel","mix","dotenv","env","environment"],"repository":{"type":"git","url":"git+https://github.com/johnwilhite/mix-env-file.git"},"author":{"name":"John Wilhite"},"bugs":{"url":"https://github.com/johnwilhite/mix-env-file/issues"},"license":"MIT","readme":"# mix-env-file\nAllows [Laravel Mix](https://github.com/JeffreyWay/laravel-mix) to use to a specific .env file\n\nBy default mix only allows variables from a single file, `.env`, in the root of the project.  This simple plugin will override the environment varibles from `.env` with a specified env file.\n\nThis is especially useful when building locally or on a build server then deploying to different locations.\n\n## Installation\n```bash\n$ npm install mix-env-file\n```\nor\n```bash\n$ yarn add mix-env-file\n```\n\n## Usage\nUpdate scripts in `package.json` to include a `ENV_FILE` environment variable:\n\n```js\n\"dev\": \"NODE_ENV=development ENV_FILE=./.env.test node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js\",\n```\n\nOR run npm/yarn with an environment variable:\n```bash\n ENV_FILE=.env.production yarn run production\n```\n\nThen in `webpack.mix.js` file, require `mix-env-file` after `laravel-mix`.\n\n```js\nlet mix = require('laravel-mix');\nrequire('mix-env-file');\n\n// Then pass your file to this plugin\n// If this is not set, this plugin won't do anything and the default .env variables will remain\nmix.env(process.env.ENV_FILE);\n\n...\n```\n\n## License\nMIT\n","readmeFilename":"README.md"}