Optimisations

Note that it is possible to pass options to, or disable, any of the bundled transforms. Simply pass the module name as documented here, with an options object to customise the behaviour, or false to disable completely. For example, to remove all comments, you can do:

{
    discardComments: {
        removeAll: true
    }
}

If you would like to keep all comments, you can pass this options object instead:

{
    discardComments: false
}

All examples aside from core are formatted with semicolons and whitespace, to aid readability.