File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
integrations/tailwindcss-cli/tests Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,20 @@ describe('Build command', () => {
145145 )
146146 } )
147147
148+ test ( '--content' , async ( ) => {
149+ await writeInputFile ( 'index.html' , html `<div class= "font-bold" > </ div> ` )
150+
151+ await $ ( `${ EXECUTABLE } --content ./src/index.html --output ./dist/main.css` )
152+
153+ expect ( await readOutputFile ( 'main.css' ) ) . toIncludeCss (
154+ css `
155+ .font-bold {
156+ font-weight : 700 ;
157+ }
158+ `
159+ )
160+ } )
161+
148162 test ( '--postcss (postcss.config.js)' , async ( ) => {
149163 await writeInputFile ( 'index.html' , html `<div class= "font-bold" > </ div> ` )
150164
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ async function build() {
430430 }
431431
432432 if ( args [ '--content' ] ) {
433- resolvedConfig . content = args [ '--content' ] . split ( / (?< ! { [ ^ } ] + ) , / )
433+ resolvedConfig . content . files = args [ '--content' ] . split ( / (?< ! { [ ^ } ] + ) , / )
434434 }
435435
436436 return resolvedConfig
You can’t perform that action at this time.
0 commit comments