mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2024-10-30 01:08:47 +00:00
(tailwind) Use TAILWIND_MODE environment variable to activate purge on build
This commit is contained in:
parent
3d09241c64
commit
ee86dc6245
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user