In Washington, a crawl space can be built without foundation vents only when the ground is covered with a continuous, sealed Class I vapor barrier that runs up and is sealed to the foundation wall, a radon system is installed, and an exhaust fan runs continuously to the outdoors at 1 cubic foot per minute for every 50 square feet of crawl space floor. A dehumidifier is not one of those items, so if we recommend one it is because of conditions in your crawl space, not the code.
Your local building department has the final say on how these rules apply to your home, and we confirm the requirements before any vents are closed. Some crawl space projects need a permit, especially when they add a sump pump, new wiring, drain lines or an exhaust fan, or close up the foundation vents, so we check with the City of Bellingham or Whatcom County before work starts and pull any permits the job requires.