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.
12 lines
392 B
12 lines
392 B
const { NODE_ENV, STORYBOOK_ENV } = process.env
|
|
|
|
const isRunningInAsar =
|
|
!STORYBOOK_ENV && process.mainModule && process.mainModule.filename.indexOf('app.asar') !== -1
|
|
|
|
export default (__DEV__ && !STORYBOOK_ENV && NODE_ENV !== 'test'
|
|
? __static
|
|
: isRunningInAsar
|
|
? __dirname.replace(/app\.asar$/, 'static')
|
|
: !STORYBOOK_ENV
|
|
? `${__dirname}/../../static`
|
|
: 'static')
|
|
|