Skip to content

Commit d7881b1

Browse files
author
Patrick Tannoury
committed
fixed filepath error
1 parent ef8338b commit d7881b1

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

dist/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ if (process.argv[2] === 'watch') {
144144
});
145145
exports.screenKeys.push(...Object.keys(config.screens));
146146
watcher.on('change', (filePath) => {
147-
if (config?.fileExtensions.includes(filePath.substring(filePath.lastIndexOf('.'), filePath.length))) {
147+
if (config?.fileExtensions.includes(filePath.substring(filePath.lastIndexOf('.'), filePath.length).replace('.', ''))) {
148148
console.log(`File changed: ${filePath}`);
149149
(0, funnel_1.default)('watch', exports.styleCSS, config, exports.baseStyle);
150150
console.log('Changes generated');

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ if (process.argv[2] === 'watch') {
156156
screenKeys.push(...Object.keys(config.screens))
157157

158158
watcher.on('change', (filePath: string) => {
159-
if(config?.fileExtensions.includes(filePath.substring(filePath.lastIndexOf('.'), filePath.length))){
159+
if(config?.fileExtensions.includes(filePath.substring(filePath.lastIndexOf('.'), filePath.length).replace('.', ''))){
160160
console.log(`File changed: ${filePath}`);
161161
funnel('watch', styleCSS, config as Config, baseStyle);
162162
console.log('Changes generated')

output.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,6 @@ div:hover > .my-10.hover\:\[div\ >\]\:color-\[\#fff\]{
207207
.hover\:bg\-\[\#000\]:hover{
208208
background-color: #000;
209209
}
210-
.fw-500{
211-
font-weight: 500;
212-
}
213-
.fs-43{
214-
font-size: 43px;
215-
}
216210
div:hover > .\(div\:hover\_\>\)\:color\-\[\#090909\]{
217211
color: #090909;
218212
}

0 commit comments

Comments
 (0)