1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-31 10:40:10 +02:00

build 3.6.0

This commit is contained in:
Kushagra Gour
2018-11-17 00:28:34 +05:30
parent 08fa1b098c
commit b006b4849e
6 changed files with 30229 additions and 6 deletions

View File

@@ -2,10 +2,14 @@ importScripts('./prettier/standalone.js');
function prettify({ content, type }) {
let plugins, parser;
if (type === 'js') {
if (type === 'html') {
importScripts('./prettier/parser-html.js');
parser = 'html';
}else if (type === 'js') {
parser = 'babylon';
importScripts('./prettier/parser-babylon.js');
} else if (type === 'css') {
}
else if (type === 'css') {
parser = 'css';
importScripts('./prettier/parser-postcss.js');
}