mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 02:56:05 +00:00
flood: do not use current working path to retrieve assets
This commit is contained in:
@@ -4,7 +4,7 @@ const userConfig = require('../../config');
|
||||
|
||||
// Make sure any symlinks in the project folder are resolved:
|
||||
// https://github.com/facebookincubator/create-react-app/issues/637
|
||||
const appDirectory = fs.realpathSync(process.cwd());
|
||||
const appDirectory = path.resolve(path.join(__dirname, '../..'));
|
||||
const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath);
|
||||
const ensureSlash = (questionablePath, needsSlash) => {
|
||||
const hasSlash = questionablePath.endsWith('/');
|
||||
|
||||
Reference in New Issue
Block a user