Autoprefixer function modifies the user-edited files #41

Closed
denver25 opened this Issue Mar 15, 2014 · 1 comment

Comments

Projects
None yet
2 participants

When autoprefixer runs, the results are saved back to files in app/styles which means the file you are working on changes and has the additional prefixed cruft that autoprefixer aims to avoid.

I think the best way to fix this would be to...

  1. have the styles, scripts, and html tasks save to an intermediary folder (the Grunt generator uses .tmp).
  2. The watch task would serve out of this folder instead of directly using app/styles.
  3. The build task would keep those three tasks as dependencies but then would select files out of .tmp to build into to dist.
  4. functions that are helpful for building but not development would move into the build task which currently does nothing extra. This includes features that make code hard to debug (like calling uglify) and features that may cause slowdown and are unnecessary until build-time (like image optimizations).

This would also help with the issues discussed in #15.

Owner

sindresorhus commented Apr 14, 2014

fixed by yeoman#73

@SBoudrias SBoudrias pushed a commit that referenced this issue Feb 15, 2016

@sindresorhus sindresorhus Watch SVG files. Fixes #41 3dee587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment