unic / estatico

[DEPRECATED] Estático – Static site generator for frontend unicorns
Other
121 stars 18 forks source link

[Suggestion] Disabling displaying JS Uglify Warnings #46

Open marbor3 opened 7 years ago

marbor3 commented 7 years ago

There are quite some warnings while uglifying main.js file - most if not all from 3rd party libs.

Maybe it's a good idea to disable them by adding compress options:

new webpack.optimize.UglifyJsPlugin({
    mangle: {
        'keep_fnames': true
    },
    compress: {
        warnings: false
    }
})
backflip commented 6 years ago

https://github.com/unic/estatico-nou/ will introduce different log levels. As an example you can run the html task with different envs:

However, I'm evaluating whether we can simplify this in https://github.com/unic/estatico-nou/issues/12