actum / gulp-dev-stack

Actum dev stack based on gulp
MIT License
11 stars 7 forks source link

Configuration of asset paths #132

Closed vbulant closed 7 years ago

vbulant commented 7 years ago

What about adding asset paths (/css, gfx/svg, …) to the config.js and then injecting it into the templates so that we can reuse the paths instead of hardcoding them?

Before: <link rel="stylesheet" href="css/main.css"> After: <link rel="stylesheet" href="{{ _cssPath }}/main.css">

It’s nothing too important coz we don’t change the paths often, but it seems somehow right to me.