preprocess
should be set totrue
if the PostCSS plugin is not used and the CSS code has to be preprocessed client side.skipObserving
set this totrue
if the prolyfill shouldn’t listen to browser events and DOM modifications and you want to manage it yourself via the API methods.
If you installed the prolyfill as a normal script, the configuration can be set via window.cqConfig
:
<script>
// Set this variable before the script gets loaded
window.cqConfig = {
preprocess: true
};
</script>
<script src="cq-prolyfill.min.js" async></script>
If you’re using a module loader and browserify or webpack, pass the configuration as the first parameter to the module function.
// Pass the configuration as a parameter
var cq = require('cq-prolyfill')({
preprocess: true
});