gruntjs - How to include a folder when serve the project -


  • i generated scaffold of famo.us project yeoman (yo famous)
  • i set small working project
  • i tried launch 'grunt serve' command

it works no image loaded because folder content/images not loaded

how can include it? thanks

i'm myles author of famous-generator. images in '/content/images/' should able loaded absolute or relative path... although have updated generated 'main.js' use absolute path sake of being explicit.

remember when famous code run running inside of index.html, , therefore have same "relative path" included assets. well, since serving via development server, able reference absolute paths relative root directory of project.

you should not have touch requireconfig @ honest. used add vendor code installed in 'lib' path within require can reference modules name rather path. 'underscore' rather '../lib/underscore'. becomes nice begin nest folders , don't want have manage relative paths. makes code lot more portable!

a nice sidebar, should install vendor code 'bower install --save $lib_name'. save library / version bower.json , inject path module requireconfig. can bower install , start requiring!


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -