Skip to content

Commit 46b2f4b

Browse files
fix
1 parent c955a77 commit 46b2f4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/redirect/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ const template = {
2727
"description": "Made with Just an Ultimate Site Tool"
2828
}
2929
const fs = require('fs');
30+
const path = require('path');
3031
const compress = (string) => string.replaceAll(`\n`,'').replaceAll(' ','');
3132

3233
const config = JSON.parse(fs.readFileSync('just.config.json', 'utf-8'));
3334
const redirectConfig = config.redirect_config;
3435

35-
const cssContent = compress(fs.readFileSync('./style.css', 'utf-8'));
36+
const cssContent = compress(fs.readFileSync(path.join(__dirname, 'style.css'), 'utf-8'));
3637
fs.writeFileSync(`deploy/_just/style.css`, cssContent);
3738

3839
const generatePage = (url, params, path_) => {

0 commit comments

Comments
 (0)