mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
2e59166daa
The autoprefixer not working broke the phantomjs backend png rendering Fixes #16345
34 lines
668 B
JavaScript
34 lines
668 B
JavaScript
'use strict';
|
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
|
module.exports = function(options) {
|
|
return {
|
|
test: /\.scss$/,
|
|
use: [
|
|
MiniCssExtractPlugin.loader,
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
importLoaders: 2,
|
|
url: options.preserveUrl,
|
|
sourceMap: options.sourceMap
|
|
},
|
|
},
|
|
{
|
|
loader: 'postcss-loader',
|
|
options: {
|
|
sourceMap: options.sourceMap,
|
|
config: { path: __dirname },
|
|
},
|
|
},
|
|
{
|
|
loader: 'sass-loader',
|
|
options: {
|
|
sourceMap: options.sourceMap
|
|
},
|
|
},
|
|
],
|
|
};
|
|
};
|