Skip to content

Commit 2e59166

Browse files
authored
Fix: Autoprefixer is now working (grafana#16351)
The autoprefixer not working broke the phantomjs backend png rendering Fixes grafana#16345
1 parent 7e149fb commit 2e59166

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.browserslistrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
>1%,
2+
Chrome > 20
3+
last 4 versions,
4+
Firefox ESR

scripts/webpack/postcss.config.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
module.exports = {
2-
plugins: {
3-
'autoprefixer': {},
4-
'postcss-reporter': {},
5-
'postcss-browser-reporter': {},
6-
}
7-
}
1+
module.exports = () => {
2+
return {
3+
plugins: {
4+
autoprefixer: {},
5+
'postcss-reporter': {},
6+
'postcss-browser-reporter': {},
7+
}
8+
};
9+
};

scripts/webpack/sass.rule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function(options) {
1919
loader: 'postcss-loader',
2020
options: {
2121
sourceMap: options.sourceMap,
22-
config: { path: __dirname + '/postcss.config.js' },
22+
config: { path: __dirname },
2323
},
2424
},
2525
{

0 commit comments

Comments
 (0)