Updating js plugins
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user