generator-themeplate
Version:
A Yeoman Generator to kickstart WordPress theme development
27 lines (24 loc) • 451 B
JavaScript
module.exports = (context) => {
const options = context.options;
const plugins = {};
if (undefined === options || !options.minified) {
<%_ if ('tailwind' === opts.framework) { _%>
plugins.tailwindcss = {};
<%_ } _%>
plugins.autoprefixer = {
remove: false,
};
} else {
plugins.cssnano = {
preset: [
'default',
{
discardComments: {
removeAllButFirst: true,
},
},
],
};
}
return { plugins };
};