mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-01 03:00:09 +02:00
add prettier support for js,css,markdown fixes #234
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { h } from 'preact';
|
||||
import { getExtensionFromFileName } from '../fileUtils';
|
||||
|
||||
export function FileIcon({ file }) {
|
||||
let path;
|
||||
@@ -24,7 +25,7 @@ export function FileIcon({ file }) {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
const type = file.name.match(/.(\w+)$/)[1];
|
||||
const type = getExtensionFromFileName(file.name);
|
||||
switch (type) {
|
||||
case 'html':
|
||||
path = (
|
||||
|
Reference in New Issue
Block a user