Automate CSS and JS Banners Remove image fading for now Reference docker-compose.yml restored
31 lines
757 B
JavaScript
31 lines
757 B
JavaScript
const { resolve } = require('path');
|
|
|
|
const pkg = require(resolve(__dirname, 'package.json'));
|
|
const year = new Date().getFullYear();
|
|
|
|
const banner = `Theme Name: WindyCOYS
|
|
Theme URI: https://windycoys.com/about
|
|
Author: ${pkg.author}
|
|
Author URI: https://danielhead.com
|
|
Description: Theme for windycoys.com
|
|
Version: ${pkg.version}
|
|
Copyright: (c) ${year} ${pkg.author}
|
|
License: MIT
|
|
License URI: https://choosealicense.com/licenses/mit/`;
|
|
|
|
|
|
module.exports = ctx => ({
|
|
map: ctx.env !== 'production',
|
|
plugins: {
|
|
'postcss-import': {},
|
|
'postcss-custom-media': {},
|
|
'postcss-custom-properties': {},
|
|
autoprefixer: {},
|
|
cssnano: ctx.env === 'production' ? {} : false,
|
|
'postcss-banner': {
|
|
banner,
|
|
important: true,
|
|
},
|
|
},
|
|
});
|