Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
laravel-mix-environments
Advanced tools
Readme
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 14 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.