We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c955a77 commit 46b2f4bCopy full SHA for 46b2f4b
src/redirect/index.js
@@ -27,12 +27,13 @@ const template = {
27
"description": "Made with Just an Ultimate Site Tool"
28
}
29
const fs = require('fs');
30
+const path = require('path');
31
const compress = (string) => string.replaceAll(`\n`,'').replaceAll(' ','');
32
33
const config = JSON.parse(fs.readFileSync('just.config.json', 'utf-8'));
34
const redirectConfig = config.redirect_config;
35
-const cssContent = compress(fs.readFileSync('./style.css', 'utf-8'));
36
+const cssContent = compress(fs.readFileSync(path.join(__dirname, 'style.css'), 'utf-8'));
37
fs.writeFileSync(`deploy/_just/style.css`, cssContent);
38
39
const generatePage = (url, params, path_) => {
0 commit comments