
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
laravel-mix-obfuscator
Advanced tools
A quick Laravel Mix extension for Webpack Obfuscator (Javascript Obfuscator) support.
This extension provides instant Webpack Obfuscator (Javascript Obfuscator) support to your Mix (v2.1 and up) builds.
First, install the extension.
npm install laravel-mix-obfuscator --save-dev
Then, require it within your webpack.mix.js
file, like so:
let mix = require('laravel-mix');
require('laravel-mix-obfuscator');
mix
.js('resources/js/app.js', 'public/js')
.less('resources/less/app.less', 'public/css')
.obfuscator({
exclude: [
path.resolve(__dirname, 'node_modules')
]
});
mix.obfuscator({
options: {},
exclude: []
})
Type: object
Default: {}
Javascript Obfuscator options.
More information about the Javascript Obfuscator options
Type: string[]
Default: []
A file names or globs which indicates files to exclude from obfuscation.
It is not recommended to obfuscate vendor scripts and polyfills, since the obfuscated code is 15-80% slower (depends on options) and the files are significantly larger.
It is strongly recommended to exclude node_modules
.
FAQs
A quick Laravel Mix extension for Webpack Obfuscator (Javascript Obfuscator) support.
The npm package laravel-mix-obfuscator receives a total of 59 weekly downloads. As such, laravel-mix-obfuscator popularity was classified as not popular.
We found that laravel-mix-obfuscator 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.