Commit 719c53f
Fix webpack config backup bug - copy actual file instead of template
The backup operation was incorrectly using copy_file() which copies from
the generator's template directory, not the user's actual webpack config.
This would fail or backup the wrong file.
Fixed by:
- Adding require 'fileutils'
- Using FileUtils.cp() to copy the actual user's webpack config file
- Adding existence check before copying to prevent errors
- Keeping the same backup path and success message
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent ce3a7ba commit 719c53f
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| |||
0 commit comments