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

Config file not respected #5

Closed
mbarzeev opened this issue Feb 27, 2017 · 7 comments
Closed

Config file not respected #5

mbarzeev opened this issue Feb 27, 2017 · 7 comments

Comments

@mbarzeev
Copy link

Hi,
I'm trying to add configuration to the uglifyjs, but it doesn't seem to work.
Here is the content of my file.
BTW is that the configuration option? I've looked over the uglifyjs repo and this is the best I could find...

module.exports = {
        outSourceMap: "out.js.map"
    },
    cleancss: {
        // ... CleanCSS API options
    },
    htmlminifier: {
        // ... HTML minifier API options
    }
}

Am I missing something?
Thanks for the help

@nelsyeung
Copy link
Owner

Have you tried the following?

module.exports = {
    uglifyjs: {
        outSourceMap: 'out.js.map'
    },
}

@mbarzeev
Copy link
Author

Sorry - my bad. Didn't look in the right place.
Thanks!

@mbarzeev mbarzeev reopened this Feb 28, 2017
@mbarzeev
Copy link
Author

And again... I can't seem to find the generated file... I see that the output minified file contains the
//# sourceMappingURL=out.js.map
but it has nothing to map to. there is no out.js.map file.
I'm obviously missing something here... appriciate the help.

nelsyeung pushed a commit that referenced this issue Feb 28, 2017
@nelsyeung
Copy link
Owner

nelsyeung commented Feb 28, 2017

I've just published v0.4.2 with this fix. Please check again.

Sorry about this, I myself don't use this tool enough nowadays to notice some api changes within uglifyjs.

@nelsyeung nelsyeung reopened this Feb 28, 2017
@mbarzeev
Copy link
Author

Thanks.
Mind if I ask what tool are you using instead? ;)

@nelsyeung
Copy link
Owner

Since I kinda like working with ES6 as my default, so I started to use Webpack for most of my projects. I have a little web template for small websites which I use now: es6-web-template (it's not really complete yet as it doesn't copy assets).

@mbarzeev
Copy link
Author

I see...
Thanks.

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

2 participants