Skip to content

Commit

Permalink
Allow importing css from npm package
Browse files Browse the repository at this point in the history
Let projects import lib/index.css and lib/uswds.css by adding them to
conditional exports in package.json.
  • Loading branch information
mdmower-csnw committed Mar 7, 2024
1 parent 34ccc9f commit c76f61d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
},
"browser": "./lib/index.iife.js",
"default": "./lib/index.umd.cjs"
}
},
"./lib/index.css": "./lib/index.css",
"./lib/uswds.css": "./lib/uswds.css"
},
"files": [
"lib"
Expand Down

0 comments on commit c76f61d

Please sign in to comment.