Skip to content

Commit

Permalink
[INTERNAL] fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasso85 committed Oct 30, 2019
1 parent 4bebc3f commit 1f8f7ed
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/processors/themeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ThemeBuilder {

const libParams = new Resource({
path: themeDir + "/library-parameters.json",
string: JSON.stringify(result.variables, null, compress || compressJSON ? null : "\t")
string: JSON.stringify(result.variables, null, (compress || compressJSON) ? null : "\t")
});

files.push(libCss, libCssRtl, libParams);
Expand Down
5 changes: 3 additions & 2 deletions lib/tasks/buildThemes.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ module.exports = async function({workspace, dependencies, options}) {

resources = await allResources.filter(isAvailable);
}
const compress = options.compress !== false;
const processedResources = await themeBuilder({
resources,
fs: fsInterface(combo),
options: {
compressJSON: true
compressJSON: compress,
compress: false
}
});
const compress = options.compress !== false;
if (compress) {
const cssResources = processedResources.filter((resource) => {
return resource.getPath().endsWith(".css");
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"someColor":"#000"}
{"someColor":"#000000"}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f8f7ed

Please sign in to comment.