Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GMartigny opened this issue Oct 18, 2017 · 0 comments
Open

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

GMartigny opened this issue Oct 18, 2017 · 0 comments

Comments

@GMartigny
Copy link

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
        },
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant