mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-14 01:34:55 +08:00
25 lines
671 B
JavaScript
25 lines
671 B
JavaScript
|
|
|
|
module.exports = function (context, options) {
|
|
return {
|
|
name: 'postcss-tailwindcss-loader',
|
|
configurePostCss(postcssOptions) {
|
|
const newOptions = {
|
|
ident: 'postcss',
|
|
plugins: [
|
|
require('postcss-import'),
|
|
require('tailwindcss'),
|
|
require('postcss-preset-env')({
|
|
autoprefixer: {
|
|
flexbox: 'no-2009',
|
|
},
|
|
stage: 4,
|
|
})
|
|
],
|
|
};
|
|
return { ...postcssOptions, ...newOptions };
|
|
},
|
|
};
|
|
};
|
|
|