Skip to content

Commit

Permalink
Merge pull request #1300 from sebastiandedeyne/config-disable-autopre…
Browse files Browse the repository at this point in the history
…fixer

Add autoprefixer toggle to config
  • Loading branch information
JeffreyWay committed Nov 5, 2017
2 parents 8f8b5f1 + b244127 commit de1d8ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/builder/webpack-rules.js
Expand Up @@ -157,7 +157,9 @@ module.exports = function () {
plugins = preprocessor.postCssPlugins;
}

plugins.push(require('autoprefixer'));
if (Config.autoprefixer) {
plugins.push(require('autoprefixer'));
}

return plugins;
})()
Expand Down
6 changes: 6 additions & 0 deletions src/config.js
Expand Up @@ -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.
Expand Down

0 comments on commit de1d8ff

Please sign in to comment.