-
Notifications
You must be signed in to change notification settings - Fork 2.2k
What's generating hashed json.gzip files in the root dir? #579
Comments
It's the cache directory from babel-loader: https://github.com/babel/babel-loader#using-cachedirectory-fails-with-enoent-error
https://github.com/davezuko/react-redux-starter-kit/blob/master/build/webpack.config.js#L112 Closing this just so I can prune some issues that aren't directly related to the starter kit, but I am also interested in finding ways to clean this up. The weird thing is that the only environment I can reproduce it in ("it" being "the gzip.json files are in my project directory") is Ubuntu. What about you? |
See: https://github.com/babel/babel-loader/blob/master/lib/fs-cache.js#L127-L129 I just tested on Ubuntu 14.04 and |
Thanks for the info, I'm on OSX el capitan 10.11, node v5.4.0. I'm starting to think it's either a permissions issue or an issue with nvm. For now, I set cacheDirectory to a dir name and put that in the gitignore |
@a-axton Do you have an example so I can copy your setup? { test: /.js$/, exclude: /node_modules/, loaders: ["react-hot", "babel?cacheDirectory"] } |
It's just a quick fix, never actually got around to solving the issue. You can assign a string to the cacheDirectory option to choose a dir to save the json files to. I'm using the query object for my setup, but for you it's probably something like |
sweet! that worked. Thank you. I created a folder called 'babel-cache' one directory up from my config.js file. Example: loaders: ["react-hot", "babel?cacheDirectory=__dirname/../babel-cache"] |
I had this issue when running inside a
So depending on which version of this repo you have, update the compiler_babel : {
cacheDirectory : '/tmp',
plugins : ['transform-runtime'],
presets : ['es2015', 'react', 'stage-0'] |
I have about 100 gzipped json files in my root dir, is this from HMR? Is there a way to clean this up?
The text was updated successfully, but these errors were encountered: