Skip to content

Commit

Permalink
chore(ui): copy icons to dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
renanvalentin committed May 31, 2023
1 parent b649b26 commit deda0bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/ui/package.json
Expand Up @@ -73,6 +73,7 @@
"http-server": "^14.1.1",
"jest-image-snapshot": "^6.1.0",
"prettier": "^2.4.1",
"rollup-plugin-copy": "^3.4.0",
"storybook-addon-pseudo-states": "^1.15.2",
"url-loader": "^4.1.1",
"wait-on": "^7.0.1",
Expand Down
7 changes: 6 additions & 1 deletion packages/ui/rollup.config.js
Expand Up @@ -3,6 +3,7 @@ import image from '@rollup/plugin-image';
import typescript from '@rollup/plugin-typescript';
import svgr from '@svgr/rollup';
import { vanillaExtractPlugin } from '@vanilla-extract/rollup-plugin';
import copy from 'rollup-plugin-copy';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';

import packageJson from './package.json';
Expand All @@ -11,14 +12,18 @@ export default () => ({
input: 'src/index.ts',
plugins: [
typescript({
tsconfig: 'tsconfig.json',
tsconfig: './tsconfig.json',
composite: false,
exclude: ['**/*.stories.tsx'],
}),
peerDepsExternal(),
commonjs(),
image(),
svgr({ icon: true }),
vanillaExtractPlugin(),
copy({
targets: [{ src: 'src/assets/icons/*', dest: 'dist/assets/icons' }],
}),
],
output: [
{
Expand Down

0 comments on commit deda0bf

Please sign in to comment.