Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get: function() {
return DM.ad.get().settings.ref.assets.preloader.images.map(obj => {
return obj.source
})
},
importPath: `./${DM.ad.get().paths.ad.images}`,
requestPath: `${DM.ad.get().paths.ad.images}`
}
}
]
},
config.payload
)
)
log('\nPayload:')
log(DM.payload.get())
// patterns that can be used w/ rollup-plugin-utils' createFilter util
// (see: https://github.com/rollup/rollup-pluginutils)
// accepts either a RegExp, glob/minimatch pattern, or an array of either of the types mentioned
// also allows for optional query strings
const imageIncludes = /\.(png|jpg|gif|svg)(\?.*)?$/
const fontIncludes = /\.(ttf|woff)(\?.*)?$/
/** -- LOADERS -----------------------------------------------------------------------------------------------
*
*
*
*/
const loaders = [
// loads images and fonts
{
assets: {
get: function () {
return DM.ad.get().settings.ref.assets.preloader.images.map(obj => {
return obj.source
})
},
importPath: `./${DM.ad.get().paths.ad.images}`,
requestPath: `${DM.ad.get().paths.ad.images}`
}
}]
},
config.payload
)
)
log('\nPayload:')
log(DM.payload.get())
// patterns that can be used w/ rollup-plugin-utils' createFilter util
// (see: https://github.com/rollup/rollup-pluginutils)
// accepts either a RegExp, glob/minimatch pattern, or an array of either of the types mentioned
// also allows for optional query strings
const imageIncludes = /\.(png|jpg|gif|svg)(\?.*)?$/
const fontIncludes = /\.(ttf|woff)(\?.*)?$/
/** -- LOADERS -----------------------------------------------------------------------------------------------
*
*
*
*/
const loaders = [
// loads images and fonts
{
)
// give deploy ability to override ad environment
DM.ad.setAdEnvironment(DM.deploy.get().profile.adEnvironment, DM.deploy.get().output.debug)
/*** LOAD EXTERNAL SETTINGS **/
DM.ad.refresh()
log('\nAd:')
log(DM.ad.get())
/** -- PAYLOAD SETTINGS -----------------------------------------------------------------------------------------------
*
* these settings are unique to packaging-style
*
*
*/
DM.payload.prepare(
_.merge(
{
// payload settings
watchPaths: [path.resolve(`${__dirname}/${DM.ad.get().settings.source.path}`)],
entries: [
{
name: 'inline',
type: 'inline',
assets: {
get: function() {
return DM.ad.get().settings.ref.assets.preloader.images.map(obj => {
return obj.source
})
},
importPath: `./${DM.ad.get().paths.ad.images}`,
requestPath: `${DM.ad.get().paths.ad.images}`
)
// give deploy ability to override ad environment
DM.ad.setAdEnvironment(DM.deploy.get().profile.adEnvironment, DM.deploy.get().output.debug)
/*** LOAD EXTERNAL SETTINGS **/
DM.ad.refresh()
log('\nAd:')
log(DM.ad.get())
/** -- PAYLOAD SETTINGS -----------------------------------------------------------------------------------------------
*
* these settings are unique to packaging-style
*
*
*/
DM.payload.prepare(
_.merge({
// payload settings
watchPaths: [path.resolve(`${__dirname}/${DM.ad.get().settings.source.path}`)],
entries: [{
name: 'inline',
type: 'inline',
assets: {
get: function () {
return DM.ad.get().settings.ref.assets.preloader.images.map(obj => {
return obj.source
})
},
importPath: `./${DM.ad.get().paths.ad.images}`,
requestPath: `${DM.ad.get().paths.ad.images}`
}
}]