mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 18:19:47 +00:00
First bit of real UI code landed
This commit is contained in:
@@ -101,7 +101,7 @@ export default function (resolveFileUrl) {
|
||||
hashToId = new Map();
|
||||
pathToResult = new Map();
|
||||
|
||||
const cssPaths = await globP('src/static-build/**/*.css', {
|
||||
const cssPaths = await globP('src/**/*.css', {
|
||||
nodir: true,
|
||||
absolute: true,
|
||||
});
|
||||
@@ -126,11 +126,11 @@ export default function (resolveFileUrl) {
|
||||
|
||||
const cssClassExports = Object.entries(moduleJSON).map(
|
||||
([key, val]) =>
|
||||
`export const $${camelCase(key)} = ${JSON.stringify(val)};`,
|
||||
`export const ${camelCase(key)} = ${JSON.stringify(val)};`,
|
||||
);
|
||||
|
||||
const defs = Object.keys(moduleJSON)
|
||||
.map((key) => `export const $${camelCase(key)}: string;`)
|
||||
.map((key) => `export const ${camelCase(key)}: string;`)
|
||||
.join('\n');
|
||||
|
||||
const defPath = path + '.d.ts';
|
||||
|
||||
Reference in New Issue
Block a user