Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
laravel-mix-environments
Advanced tools
Adds mix.inDevelopment() & mix.inTest() to Laravel Mix.
laravel-mix-environments is a simple plugin that extends laravel-mix with 2 additional methods.
mix.inDevelopment()
returns true when NODE_ENV
is set to development
.mix.inTest()
returns true when NODE_ENV
is set to test
.$ npm install laravel-mix-environments
Inside your webpack.mix.js
file, import laravel-mix-environments after importing laravel-mix and start using them.
const mix = require('laravel-mix');
const mixEnvironments = require('laravel-mix-environments');
if (mix.inDevelopment()) {
// Add webpack configs for development environment here.
}
if (mix.inTest()) {
// Add webpack configs for test environment here.
}
laravel-mix-environments by Yan Sern. This is an open source project released under the MIT License.
PS: I would love to know if you're using laravel-mix-environments. Tweet to me at @yansernio.
FAQs
Adds mix.inDevelopment() & mix.inTest() to Laravel Mix.
The npm package laravel-mix-environments receives a total of 11 weekly downloads. As such, laravel-mix-environments popularity was classified as not popular.
We found that laravel-mix-environments demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.