meriadec
7 years ago
1 changed files with 3 additions and 2 deletions
@ -1,5 +1,6 @@ |
|||
const isRunningInAsar = process.mainModule.filename.indexOf('app.asar') !== -1 |
|||
const isStorybook = !process.mainModule |
|||
const isRunningInAsar = !isStorybook && process.mainModule.filename.indexOf('app.asar') !== -1 |
|||
|
|||
export default (__DEV__ |
|||
export default (__DEV__ && !isStorybook |
|||
? __static |
|||
: isRunningInAsar ? __dirname.replace(/app\.asar$/, 'static') : `${__dirname}/../static`) |
|||
|
Loading…
Reference in new issue