Skip to content

Adding "generateSourceMaps" break uglify's beautify option #969

Open

Description

@GMartigny

Hello,

I'm using requirejs to build all my sources into a single file.
I have two build, one for development (no compress, no mangle and source map) and one for production.

When I add the "generateSourceMaps" option, the generated file is being compress no matter what others options I set.

Here's my configuration :

options: {
    baseUrl: "src/js/",
    // generateSourceMaps: true, // adding this one output a minified file
    name: "loader",
    out: "dist/js/script.js",
    uglify: {                    // despite those options
        mangle: false,
        output: {
            beautify: true
        },
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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