File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ export const build = async (): Promise<void> => {
138
138
[ "ts" , "tsx" ] ,
139
139
configuration . exclude . extensions
140
140
) ;
141
+ // Get the list of css files
142
+ const cssFiles = getFilesRecursive ( srcDir , [ "css" ] , [ ] ) ;
141
143
// Configure the TypeScript program
142
144
const program = ts . createProgram ( files , compilerOptions ) ;
143
145
@@ -173,6 +175,10 @@ export const build = async (): Promise<void> => {
173
175
}
174
176
175
177
// Copy files to the output directory
178
+ cssFiles . forEach ( cssFile => {
179
+ const path = cssFile . replace ( / ^ ( \. \/ ) ? s r c \/ / , "" ) ;
180
+ configuration . files [ cssFile ] = `${ path } ` ;
181
+ } ) ;
176
182
for ( const source of Object . keys ( configuration . files ) ) {
177
183
if ( ! fs . existsSync ( source ) ) {
178
184
throw new Error ( `🧨⚠️💣 Source ${ source } does not exist` ) ;
You can’t perform that action at this time.
0 commit comments