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