|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
645 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | import "./lib/transform.js";
|
|---|
| 2 | import "./lib/mozilla-ast.js";
|
|---|
| 3 | import { minify } from "./lib/minify.js";
|
|---|
| 4 |
|
|---|
| 5 | export { minify, minify_sync } from "./lib/minify.js";
|
|---|
| 6 | export { run_cli as _run_cli } from "./lib/cli.js";
|
|---|
| 7 |
|
|---|
| 8 | export async function _default_options() {
|
|---|
| 9 | const defs = {};
|
|---|
| 10 |
|
|---|
| 11 | Object.keys(infer_options({ 0: 0 })).forEach((component) => {
|
|---|
| 12 | const options = infer_options({
|
|---|
| 13 | [component]: {0: 0}
|
|---|
| 14 | });
|
|---|
| 15 |
|
|---|
| 16 | if (options) defs[component] = options;
|
|---|
| 17 | });
|
|---|
| 18 | return defs;
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | async function infer_options(options) {
|
|---|
| 22 | try {
|
|---|
| 23 | await minify("", options);
|
|---|
| 24 | } catch (error) {
|
|---|
| 25 | return error.defs;
|
|---|
| 26 | }
|
|---|
| 27 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.