Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
let match = 'resolve('
if (!node[ nodeProp ] || node[ nodeProp ].indexOf(match) === -1) {
return
}
let temp = node[ nodeProp ].replace(/([^)]+)$/, '')
let newValue = window.eval('var resolve=function(s) { return window.eval(s)+\'\'; }; ' + temp) + ''
node[ nodeProp ] = node[ nodeProp ].replace(temp, newValue)
})
}
})
mainPlugins.push(plugin())
// mainPlugins.push(postcssMath())
mainPlugins.push(functions({
functions: {
rawUrl: (path) => {
return `url(${path})`
}
}
}))
mainPlugins.push(postcssColor)
mainPlugins.push(postcssNested)
mainPlugins.push(postcssClean)
mainPlugins.push(autoprefixer({
overrideBrowserslist: [
'>1%',
'ios_saf 8',
'ie 10',
'ie 11'
]