legendary-doc-site/apps/app/assets/tailwind.config.js

30 lines
672 B
JavaScript
Raw Normal View History

2021-07-19 21:27:47 +00:00
const yargsParser = require('yargs-parser');
const cliArgs = yargsParser(process.argv);
const mode = process.env.NODE_ENV || cliArgs.mode || 'development';
2020-08-22 15:01:04 +00:00
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
2020-08-22 15:01:04 +00:00
},
2021-06-29 03:50:16 +00:00
purge: {
2021-07-19 21:27:47 +00:00
enabled: mode == 'production',
2021-06-29 03:50:16 +00:00
layers: ['base', 'components', 'utilities'],
content: [
'../../../**/views/*.ex',
'../../../**/*.html.eex',
'../../../**/*.html.leex',
'../../../**/*.html.heex',
'./js/**/*.js'
]
},
2020-08-22 15:01:04 +00:00
theme: {
extend: {},
},
variants: {
backgroundColor: ['responsive', 'hover', 'focus', 'checked'],
},
2020-08-22 15:01:04 +00:00
plugins: [],
}