Add Jest tests
Automate CSS and JS Banners Remove image fading for now Reference docker-compose.yml restored
This commit is contained in:
@@ -1,10 +1,30 @@
|
||||
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,
|
||||
autoprefixer: {},
|
||||
cssnano: ctx.env === 'production' ? {} : false,
|
||||
'postcss-banner': {
|
||||
banner,
|
||||
important: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user