Skip to content

Commit

Permalink
Rollup config: export asset files in SDS build (#204)
Browse files Browse the repository at this point in the history
* Rollup config: export asset files in build

* Bump SDS version to v1.1.2
  • Loading branch information
quietbits authored Jan 5, 2024
1 parent df88af3 commit d408221
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion @stellar/design-system-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@docusaurus/remark-plugin-npm2yarn": "^2.4.3",
"@docusaurus/theme-live-codeblock": "^2.4.1",
"@mdx-js/react": "^1.6.22",
"@stellar/design-system": "^1.1.1",
"@stellar/design-system": "^1.1.2",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion @stellar/design-system/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stellar/design-system",
"version": "1.1.1",
"version": "1.1.2",
"author": "Stellar Development Foundation <[email protected]>",
"description": "Components for Stellar Development Foundation’s design system",
"license": "Apache-2.0",
Expand Down
7 changes: 6 additions & 1 deletion @stellar/design-system/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ export default {
plugins: [postcssPresetEnv()],
minimize: true,
}),
url(),
url({
destDir: "build/assets/",
limit: 0,
fileName: "[dirname][name][extname]",
include: ["**/*.svg", "**/*.png", "**/*.gif", "**/*.jpg", "**/*.jpeg"],
}),
// options are in svgr.config.js
svgr(),
],
Expand Down

0 comments on commit d408221

Please sign in to comment.