mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-09 12:05:08 +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',
|
darkMode : 'class',
|
||||||
important : true,
|
important : true,
|
||||||
purge : {
|
purge : {
|
||||||
// Until AngularCLI team provides a better way to distinguish between
|
enabled: process.env.TAILWIND_MODE === 'build',
|
||||||
// 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,
|
|
||||||
content: ['./src/**/*.{html,scss,ts}'],
|
content: ['./src/**/*.{html,scss,ts}'],
|
||||||
options: {
|
options: {
|
||||||
safelist: {
|
safelist: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user