DEV Community

loading...

using node to generate / serve dynamic css and dynamic js

osde8info profile image Clive Da ・1 min read

they said it couldnt/shouldnt be done !

see https://stackoverflow.com/questions/26094297/serve-dynamic-javascript-file-with-nodejs

works for me !

see https://osde8info-opensky.glitch.me/

BUT if you know how i should code this please let me know

Discussion (4)

pic
Editor guide
Collapse
Sloan, the sloth mascot
Comment deleted
Collapse
Sloan, the sloth mascot
Comment deleted
Collapse
osde8info profile image
Clive Da Author

cant seem to add screenshot directly to post :(

thepracticaldev.s3.amazonaws.com/i...

Collapse
osde8info profile image
Clive Da Author

POSSIBLE ANSWER : i think i need to write this as a babel plugin to transpile the google tag manager id into the HTML/JS so PLEASE post a link to yours if youve already written one