File tree 2 files changed +15
-1
lines changed
integrations/tailwindcss-cli/tests
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,20 @@ describe('Build command', () => {
145
145
)
146
146
} )
147
147
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
+
148
162
test ( '--postcss (postcss.config.js)' , async ( ) => {
149
163
await writeInputFile ( 'index.html' , html `<div class= "font-bold" > </ div> ` )
150
164
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ async function build() {
430
430
}
431
431
432
432
if ( args [ '--content' ] ) {
433
- resolvedConfig . content = args [ '--content' ] . split ( / (?< ! { [ ^ } ] + ) , / )
433
+ resolvedConfig . content . files = args [ '--content' ] . split ( / (?< ! { [ ^ } ] + ) , / )
434
434
}
435
435
436
436
return resolvedConfig
You can’t perform that action at this time.
0 commit comments