diff --git a/tailwind.config.js b/tailwind.config.js index 75d82c49..db6e214e 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -74,11 +74,7 @@ const config = { darkMode : 'class', important : true, purge : { - // Until AngularCLI team provides a better way to distinguish between - // development and production, we will decide whether to purge or not - // by looking at the process arguments. If there is a "build" argument - // with the "ng" command then we will enable the purge. - enabled: process && process.argv && process.argv.find(arg => arg.includes('ng')) && process.argv.indexOf('build') !== -1, + enabled: process.env.TAILWIND_MODE === 'build', content: ['./src/**/*.{html,scss,ts}'], options: { safelist: {