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:
@@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user