haskell - How do i prevent caching of static files in Yesod? -


i use scaffolded site , whenever change in static javascript files have stop development server , 'cabal install && yesod devel' changes take effect.

is there way use normal js/css instead of cached versions don't need recompile time?

try

touch settings/staticfiles.hs 

it particular file because template haskell code static files in file (in default scaffolded structure). touching file recompile , reexecute template haskell code.


edit: sorry, noticed doesn't answer question regarding how develop static js/css source files files in templates folder. well, should not have js/css files in static folder, please consider moving .js/.css files template folder , use shakespearian languages if feel you're actively working on css , js files.

you put js/css files in static folder when you've taken large code base somewhere else, blueprint css framework. see answer on this question.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -