-
-
Notifications
You must be signed in to change notification settings - Fork 199
Closed
Labels
Description
I can not determine if encore is in dev-server
const manifestConfigure = options => ({
writeToFileEmit: true,
filter: ({ isInitial, isModuleAsset }) => {
return isInitial && !isModuleAsset
},
generate: (seed, files) => files.reduce(
(manifest, { name, path }) => {
let ext = path.split('.').pop()
let key = ext ? `/${ext}/${name}` : `/${name}`
return {
...manifest,
[key]: Encore.isDevServer() ? path : path.replace(`${sourcePath}/`, '')
}
},
seed
)
})