Allow autoprefixer's browser versions to be configured

This commit is contained in:
Oskar Schöldström
2017-01-10 12:21:25 -05:00
parent e7366d45eb
commit 6b37080b13
3 changed files with 8 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ const config = mergeWithConcat({
watcher: !!argv.watch,
},
watch: [],
browsers: [],
}, userConfig);
config.watch.push(`${path.basename(config.paths.assets)}/${config.copy}`);

View File

@@ -155,7 +155,7 @@ let webpackConfig = {
output: { path: config.paths.dist },
context: config.paths.assets,
postcss: [
autoprefixer({ browsers: ['last 2 versions', 'android 4', 'opera 12'] }),
autoprefixer({ browsers: config.browsers }),
],
},
}),