mirror of https://github.com/calzoneman/sync.git
Fix variable misuse
This commit is contained in:
parent
04336c9712
commit
fac11ee312
|
@ -169,8 +169,8 @@ module.exports = {
|
||||||
|
|
||||||
if (webConfig.getEnableMinification()) {
|
if (webConfig.getEnableMinification()) {
|
||||||
const cacheDir = path.join(__dirname, '..', '..', 'www', 'cache');
|
const cacheDir = path.join(__dirname, '..', '..', 'www', 'cache');
|
||||||
if (!fs.existsSync(cache)) {
|
if (!fs.existsSync(cacheDir)) {
|
||||||
fs.mkdirSync(cache);
|
fs.mkdirSync(cacheDir);
|
||||||
}
|
}
|
||||||
app.use(require('express-minify')({
|
app.use(require('express-minify')({
|
||||||
cache: cacheDir
|
cache: cacheDir
|
||||||
|
|
Loading…
Reference in New Issue