Skip to content

Commit

Permalink
Fix Browserslist.
Browse files Browse the repository at this point in the history
  • Loading branch information
phyllisstein committed Feb 24, 2021
1 parent 9bb0762 commit 6d0c8ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/cmd/compile/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ function compile(options = {}) {
cssImport({
path: helpers.getConfigFileValue('postcssImportPaths') || ['./styleguides']
}),
autoprefixer({
overrideBrowserslist: helpers.getConfigFileOrBrowsersList('autoprefixerOptions')
}),
autoprefixer(helpers.getConfigFileOrBrowsersList('autoprefixerOptions')),
mixins(),
// Simple vars must come before `nested` so that string interpolation of variables occurs before
// the nesting is parsed. This ensures being able to use variables in class names of nested selectors
Expand Down
2 changes: 1 addition & 1 deletion lib/compilation-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ module.exports.unbucket = unbucket;
module.exports.generateBundles = generateBundles;
module.exports.hasChanged = hasChanged;
module.exports.transformPath = transformPath;
module.exports.browserslist = { browsers: ['> 3%', 'not and_uc > 0'] }; // used by styles, and vueify, and babel/preset-env
module.exports.browserslist = { overrideBrowserslist: ['> 3%', 'not and_uc > 0'] }; // used by styles, and vueify, and babel/preset-env
module.exports.determinePostCSSPlugins = determinePostCSSPlugins;
module.exports.getConfigFileOrBrowsersList = getConfigFileOrBrowsersList;
module.exports.getConfigFileValue = getConfigFileValue;
Expand Down

0 comments on commit 6d0c8ef

Please sign in to comment.