jellyfin-web/postcss.config.js

17 lines
561 B
JavaScript
Raw Normal View History

2020-05-06 07:02:56 -07:00
const packageConfig = require('./package.json');
2020-03-13 01:46:11 -07:00
const postcssPresetEnv = require('postcss-preset-env');
const autoprefixer = require('autoprefixer');
2020-02-28 06:36:42 -07:00
const cssnano = require('cssnano');
const config = () => ({
2020-04-25 05:07:55 -07:00
plugins: [
2020-05-08 03:50:04 -07:00
// Explicitly specify browserslist to override ones from node_modules
// For example, Swiper has it in its package.json
2023-03-28 21:38:22 -07:00
postcssPresetEnv({ browsers: packageConfig.browserslist }),
autoprefixer({ overrideBrowserslist: packageConfig.browserslist }),
2020-04-25 05:07:55 -07:00
cssnano()
]
2020-03-13 01:46:11 -07:00
});
2020-02-28 06:36:42 -07:00
2020-04-25 05:07:55 -07:00
module.exports = config;