Parcel: Config files do not invalidate cache

Created on 7 Dec 2017  路  4Comments  路  Source: parcel-bundler/parcel

Create a new Parcel application with CSS modules and start it via parcel index.html but DO NOT create a .postcssrc config file yet.

Quit the Parcel server then create a .postcssrc file with { "modules": true } as the content.

Start the Parcel server again.

Note that CSS modules do not work correctly at this point.

In order to make CSS modules work now you must rm -rf .cache and restart the Parcel server.

Example repo:

https://gist.github.com/wavebeem/c3afffcb4d757bf9d771fe1f0a9cf7e4

Bug Confirmed Bug RFC

Most helpful comment

Took a spin at this, see #297

All 4 comments

We should probably come up with a better story on how to create cache keys.

Maybe Asset can expose a function to add information to the cache key

I haven't dug into Parcel internals at all yet, but is there any concept of dependent files that will trigger a rebuild?

@wavebeem Can you expand upon that?

Took a spin at this, see #297

Was this page helpful?
0 / 5 - 0 ratings