DEV Community

Clive Da
Clive Da

Posted on

using node to generate / serve dynamic css and dynamic js

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

Latest comments (4)

Collapse
 
osde8info profile image
Clive Da

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

Collapse
 
osde8info profile image
Clive Da

cant seem to add screenshot directly to post :(

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

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
Sloan, the sloth mascot
Comment deleted