Skip to content

Commit 40645d7

Browse files
committed
Rename --files option in CLI to --purge
1 parent 63a67cb commit 40645d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ let commands = {
122122
'--output': { type: String, description: 'Output file' },
123123
'--watch': { type: Boolean, description: 'Watch for changes and rebuild as needed' },
124124
'--jit': { type: Boolean, description: 'Build using JIT mode' },
125-
'--files': { type: String, description: 'Template files to scan for class names' },
125+
'--purge': { type: String, description: 'Content paths to use for removing unused classes' },
126126
'--postcss': { type: Boolean, description: 'Load custom PostCSS configuration' },
127127
'--minify': { type: Boolean, description: 'Minify the output' },
128128
'--config': {
@@ -344,8 +344,8 @@ async function build() {
344344
let config = configPath ? require(configPath) : {}
345345
let resolvedConfig = resolveConfigInternal(config)
346346

347-
if (args['--files']) {
348-
resolvedConfig.purge = args['--files'].split(',')
347+
if (args['--purge']) {
348+
resolvedConfig.purge = args['--purge'].split(',')
349349
}
350350

351351
if (args['--jit']) {

0 commit comments

Comments
 (0)