diff --git a/src/builder/webpack-rules.js b/src/builder/webpack-rules.js index 9a466902e..ec49c18a3 100644 --- a/src/builder/webpack-rules.js +++ b/src/builder/webpack-rules.js @@ -157,7 +157,9 @@ module.exports = function () { plugins = preprocessor.postCssPlugins; } - plugins.push(require('autoprefixer')); + if (Config.autoprefixer) { + plugins.push(require('autoprefixer')); + } return plugins; })() diff --git a/src/config.js b/src/config.js index 4f45ba501..16796da7e 100644 --- a/src/config.js +++ b/src/config.js @@ -92,6 +92,12 @@ module.exports = function () { */ postCss: [], + /** + * Determine if we should enable autoprefixer by default. + * + * @type {Boolean} + */ + autoprefixer: true, /** * Determine if Mix should remove unused selectors from your CSS bundle.