Skip to content

Using with CSS files that don't support CSS modules

Nathan Reid edited this page Jun 21, 2016 · 1 revision

If you have CSS files in your project that aren't CSS modules (for example, bootstrap), you can make them work by adding them to the passthroughPaths option:

"passthroughPaths": [ "bootstrap.css" ]

The property takes a wildcard, so you can get as specific as you like:

"passthroughPaths": [ "^client/lib/bootstrap/bootstrap\\.css" ]

See Package Options for more details.