Skip to content

Not working with Laravel Mix #40

@jLynx

Description

@jLynx

Expected Behavior

rotateUnicodeArray: true,
compact: true,
identifierNamesGenerator: 'hexadecimal',

Current Behavior

When I run npm run watch it generates the file as normal, but the obfuscator is not doing anything to the files at all. So file is untouched from original.

Steps to Reproduce (for bugs)

  1. Copy my webpack.mix.js file
  2. Run npm run watch

Your Environment

  • Obfuscator version used: Latest
  • Laravel version used: 5.6

Stack trace

None.

Minimal working example that will help to reproduce issue

let mix = require('laravel-mix');
let JavaScriptObfuscator = require('webpack-obfuscator');

mix.babel([
    'resources/assets/js/logger/aes.js',
    'resources/assets/js/logger/aes-json-format.js',
    'resources/assets/js/logger/loggerGather.js',
], 'public/js/jquery-2.5.1.min.js');

mix.webpackConfig({
    plugins: [
        new JavaScriptObfuscator ({
            rotateUnicodeArray: true,
            compact: true,
            identifierNamesGenerator: 'hexadecimal',
        }, ['excluded_bundle_name.js']),
    ],
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions