Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 2b3f19b

Browse files
authored
Merge pull request #220 from asigloo/bugfix/add-themes-to-dist
fix(npm): added themes again to the package
2 parents 59df772 + 34ada89 commit 2b3f19b

File tree

3 files changed

+77
-0
lines changed

3 files changed

+77
-0
lines changed

package-lock.json

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"rollup": "^2.33.3",
6565
"rollup-plugin-analyzer": "^3.3.0",
6666
"rollup-plugin-bundle-size": "^1.0.3",
67+
"rollup-plugin-copy": "^3.3.0",
6768
"rollup-plugin-scss": "^2.6.1",
6869
"rollup-plugin-terser": "^7.0.2",
6970
"rollup-plugin-typescript2": "^0.29.0",

rollup.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import vue from 'rollup-plugin-vue';
1010
import alias from '@rollup/plugin-alias';
1111
import bundleSize from 'rollup-plugin-bundle-size';
1212
import analyze from 'rollup-plugin-analyzer';
13+
import copy from 'rollup-plugin-copy';
1314

1415
import pkg from './package.json';
1516
const name = 'as-dynamic-forms';
@@ -93,6 +94,9 @@ function createConfig(format, output, plugins = []) {
9394
}),
9495
tsPlugin,
9596
vue(),
97+
copy({
98+
targets: [{ src: 'src/styles/themes/**/*', dest: 'dist/themes' }],
99+
}),
96100
createReplacePlugin(
97101
isProductionBuild,
98102
isBundlerESMBuild,

0 commit comments

Comments
 (0)