1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/postcss.config.js

17 lines
557 B
JavaScript
Raw Normal View History

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