diff --git a/integrations/tailwindcss-cli/tests/cli.test.js b/integrations/tailwindcss-cli/tests/cli.test.js index 973758ffa6b9..e95e7c18bdc3 100644 --- a/integrations/tailwindcss-cli/tests/cli.test.js +++ b/integrations/tailwindcss-cli/tests/cli.test.js @@ -145,6 +145,20 @@ describe('Build command', () => { ) }) + test('--content', async () => { + await writeInputFile('index.html', html`
`) + + await $(`${EXECUTABLE} --content ./src/index.html --output ./dist/main.css`) + + expect(await readOutputFile('main.css')).toIncludeCss( + css` + .font-bold { + font-weight: 700; + } + ` + ) + }) + test('--postcss (postcss.config.js)', async () => { await writeInputFile('index.html', html`
`) diff --git a/src/cli.js b/src/cli.js index 1ae6bf54e7bb..9e7e3eabfc7c 100644 --- a/src/cli.js +++ b/src/cli.js @@ -430,7 +430,7 @@ async function build() { } if (args['--content']) { - resolvedConfig.content = args['--content'].split(/(?