Updating js plugins

This commit is contained in:
ahwelp
2023-01-24 20:31:23 +00:00
parent b1eb0a7a56
commit 2b6ddf9569
602 changed files with 109412 additions and 18 deletions
@@ -0,0 +1,26 @@
const pkg = require('./package.json');
const banner = `/*!
* ${pkg.name} ${pkg.homepage}
* ${pkg.description}
* @version ${pkg.version}
* @author ${pkg.author}
* @license: ${pkg.license}
*/`;
module.exports = ctx => ({
map: ctx.options.map,
plugins: {
'postcss-header': {
header: banner,
},
'postcss-preset-env': {
autoprefixer: {
flexbox: 'no-2009'
},
stage: 3
},
cssnano: ctx.env === 'production' ? {} : false
}
})