You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
358 B

const isStorybook = process.env.STORYBOOK_ENV
const isRunningInAsar =
!isStorybook && process.mainModule && process.mainModule.filename.indexOf('app.asar') !== -1
export default (__DEV__ && !isStorybook && !__TEST__
? __static
: isRunningInAsar
? __dirname.replace(/app\.asar$/, 'static')
: !isStorybook ? `${__dirname}/../static` : 'static')