@@ -126,13 +126,13 @@ export async function handle(args: Result<ReturnType<typeof options>>) {
126
126
}
127
127
128
128
let inputFile = args [ '--input' ] && args [ '--input' ] !== '-' ? args [ '--input' ] : process . cwd ( )
129
- let inputFilePath = path . dirname ( path . resolve ( inputFile ) )
129
+ let inputBasePath = path . dirname ( path . resolve ( inputFile ) )
130
130
131
131
function compile ( css : string ) {
132
132
return tailwindcss . compile ( css , {
133
133
loadPlugin : ( pluginPath ) => {
134
134
if ( pluginPath [ 0 ] === '.' ) {
135
- return require ( path . resolve ( inputFilePath , pluginPath ) )
135
+ return require ( path . resolve ( inputBasePath , pluginPath ) )
136
136
}
137
137
138
138
return require ( pluginPath )
@@ -145,7 +145,7 @@ export async function handle(args: Result<ReturnType<typeof options>>) {
145
145
let scanDirResult = scanDir ( {
146
146
base, // Root directory, mainly used for auto content detection
147
147
contentPaths : compiler . globs . map ( ( glob ) => ( {
148
- base : inputFilePath , // Globs are relative to the input.css file
148
+ base : inputBasePath , // Globs are relative to the input.css file
149
149
glob,
150
150
} ) ) ,
151
151
} )
@@ -210,7 +210,7 @@ export async function handle(args: Result<ReturnType<typeof options>>) {
210
210
scanDirResult = scanDir ( {
211
211
base, // Root directory, mainly used for auto content detection
212
212
contentPaths : compiler . globs . map ( ( glob ) => ( {
213
- base : inputFilePath , // Globs are relative to the input.css file
213
+ base : inputBasePath , // Globs are relative to the input.css file
214
214
glob,
215
215
} ) ) ,
216
216
} )
0 commit comments