Skip to content

Commit

Permalink
optimize compile asset
Browse files Browse the repository at this point in the history
  • Loading branch information
bangtoven committed Dec 8, 2023
1 parent 976115a commit 05ead41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wallet-sdk/compile-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function main() {
for (const filePath of scssFiles) {
console.info(`Compiling ${filePath}...`);
const css = sass.renderSync({ file: filePath, outputStyle: 'compressed' }).css.toString('utf8');
const ts = `export default \`${css}\``;
const ts = `export default (() => \`${css}\`)();`;
fs.writeFileSync(filePath.replace(/\.scss$/, '-css.ts'), ts, {
mode: 0o644,
});
Expand Down

0 comments on commit 05ead41

Please sign in to comment.