Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable less.watch on WordPress site during development
<?php
add_action('wp_footer', 'less_dev_mode', 9999);
function less_dev_mode() {
?>
<script type="text/javascript">
less.env = "development";
less.watch();
</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.