MCUT_Supervisor/N4JS/Arena/H/demo/global/postcss.config.js
2025-03-26 10:38:33 +08:00

33 lines
657 B
JavaScript

let config = require('./config');
// See: https://github.com/postcss/postcss-loader#usage
let postcssConfig = {
plugins: [
require('autoprefixer')({
browsers: [
// For more browsers, see https://github.com/ai/browserslist
"Chrome >= 45",
"Firefox ESR",
"Edge >= 12",
"Explorer >= 10",
"iOS >= 9",
"Safari >= 9",
"Android >= 4.4",
"Opera >= 30"
]
}),
////require('stylefmt')
]
};
if (config.production) {
postcssConfig.plugins.push(
require('postcss-csso')({
restructure: false,
debug: true
})
);
}
module.exports = postcssConfig;