Open pierceray opened 8 years ago
So depending on your environment, the source files changes?
Actually opposite of that. The source stays the same but output destination changes.
Ray Pierce
Sent from my iPhone
On Dec 5, 2015, at 1:31 AM, Drew Wells notifications@github.com wrote:
So depending on your environment, the source files changes?
— Reply to this email directly or view it on GitHub.
Ahh, so we need some sort of build environment variable. If I recall correctly, grunt has some support for these. wt has smart or fast cache busting strategies now, that might be useful for environment specific builds too.
In a lot of plugins I have seen there is a concept of a shared options/files in the Gruntfile.js. The location of my sass files doesn't really change, but my config options do change per target (e.g. dev vs. prod). It would be nice to support this.
I'm not sure of the reason, but most use "files" for the shared portions, and "src" for the targets.
An example Grunt config might look like: