Skip to content

Commit

Permalink
Allow autoprefixer's browser versions to be configured
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Jan 10, 2017
1 parent e7366d4 commit 6b37080
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const config = mergeWithConcat({
watcher: !!argv.watch,
},
watch: [],
browsers: [],
}, userConfig);

config.watch.push(`${path.basename(config.paths.assets)}/${config.copy}`);
Expand Down
2 changes: 1 addition & 1 deletion assets/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
],
},
}),
Expand Down
7 changes: 6 additions & 1 deletion assets/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
"publicPath": "/app/themes/sage",
"devUrl": "http://example.dev",
"proxyUrl": "http://localhost:3000",
"cacheBusting": "[name]_[hash:8]"
"cacheBusting": "[name]_[hash:8]",
"browsers": [
"last 2 versions",
"android 4",
"opera 12"
]
}

0 comments on commit 6b37080

Please sign in to comment.