cacheFile not working
See original GitHub issueTitle says it all; the cacheFile field doesn’t result in a cacheFile being generated or used.
I’m using grunt-browserify@5.2.0
, grunt-cli@1.2.0
, grunt@1.0.1
, and right now it actually isn’t even generating the cacheFile - Normally when/if it does, it’ll always just be a blank empty file.
If I run browserify-incremental
, that works fine, and the cacheFile it generates will be used once by grunt-browserify, before replacing it with an empty file.
If I type in anything (be it an empty object {}
or asdf
), the cache file seems to be ignored - only when it’s a valid cache does it seem to be replaced with an empty file afterwards.
The console output looks like it thinks it’s writing to cache:
Running "browserify:dev" (browserify) task
>> 11101719 bytes written (3.52 seconds)
>> Bundle public/static/js/main.js created.
I’m using the aws-sdk
, and so would really, really love to have this working, since my js build time is currently 2 seconds with an end size of about 10mb.
These are my grunt dependencies:
"browserify-incremental": "^3.1.1",
"grunt": "^1.0.1",
"grunt-browserify": "^5.2.0",
"grunt-contrib-clean": "^1.1.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-eslint": "0.0.5",
"grunt-contrib-less": "^1.4.1",
"grunt-contrib-watch": "^1.0.0"
(I included browserify-incremental
just on the off chance it might help).
I’m running Windows 10, have had no errors or exceptions given to me by Node, NPM, Grunt, Grunt-Browserify, Browserify-Incremental, or anything else to indicate that anything is amiss.
I’ve stuck console.log
calls with the properties in the actual runner.js
file, with all signs seeming to indicate that the cacheFile property is being passed correctly, and that there are no errors happening.
I’ve tried hard-setting the cache location to a number of places, including to C:\cache.json
, with no luck (not even errors, which is actually what I expected would happen, because Windows/UAC).
I’ve tried running directly from IntelliJ (via it’s Grunt command window), from PowerShell in IntelliJ, and in an admin-elevated PowerShell outside IntelliJ; all with no luck or change. command window), from PowerShell in IntelliJ, and in an admin-elevated PowerShell outside IntelliJ
I’ve not got a lot of time on my hands right now, so I’m a little loath to do any ‘try with a fresh new project stuff’ (I’ll do it, but it might just take a day or two, and I’ll grumble under my breath while doing so), but I’m happy to try and provide as much extra information as I can, if I’ve missed something (and try new things with my current project of course).
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (3 by maintainers)
Top GitHub Comments
Sorry for the delay, I promise to look at it this weekend 😏
Hi @G-Rath ! I have seen the issue, but have not yet found time to look at it myself. I’ll see if I can reproduce and troubleshoot it the next few days.