Added loading minimize option from query

I want to set minimize option in webpack.config.js or require syntax.
ex.
    module: {
        loaders: [
            { test: /\.html$/, loader: 'html?minimize' }
        ]
    },