This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Purgecss = require('purgecss') | |
| const { JSDOM } = require('jsdom') | |
| const CleanCSS = require("clean-css"); | |
| //array of css files to combine | |
| const cssFiles = ['./src/css/custom.css','./src/css/markdown.css', './src/css/tachyons.css'] | |
| // cleanCSSOptions for minification and inlining css, will fix duplicate media queries | |
| const cleanCSSOptions = { | |
| level: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const uuid = require("uuid").v4; | |
| const topicCreds = "mytopickey"; | |
| const topicEndpoint = "mytopic.westeurope-1.eventgrid.azure.net"; | |
| const request = require('request'); | |
| function publishEvent(topicURL, topicSecret, eventPayload, callback) { | |
| const options = { | |
| method: 'POST', | |
| url: topicURL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = require('request'); | |
| function publishEvent(topicURL, topicSecret, eventPayload, callback) { | |
| const options = { | |
| method: 'POST', | |
| url: topicURL, | |
| headers: { | |
| 'aeg-sas-key': topicSecret | |
| }, |
NewerOlder