generator.server.springboot.thymeleaf.template.postcss.config.js.mustache Maven / Gradle / Ivy
const postcssConfig = {
plugins: [
require('autoprefixer'),
// jhipster-needle-thymeleaf-postcss-plugins
],
};
// If we are in production mode, then add cssnano
if (process.env.NODE_ENV === 'production') {
postcssConfig.plugins.push(
require('cssnano')({
// use the safe preset so that it doesn't
// mutate or remove code from our css
preset: 'default',
}),
);
}
module.exports = postcssConfig;