Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/brick-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
"klaw-sync": "^6.0.0",
"lodash": "^4.17.21",
"prettier": "^2.7.1",
"react": "^16.14.0",
"rollup-plugin-copy": "^3.4.0"
"react": "^16.14.0"
},
"peerDependencies": {
"@next-core/brick-utils": "*",
Expand Down
5 changes: 2 additions & 3 deletions packages/brick-icons/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { rollupFactory } from "@next-core/rollup-config-factory";
import { rollupFactory, rollupPlugins } from "@next-core/rollup-config-factory";
import svgr from "@svgr/rollup";
import copy from "rollup-plugin-copy";

export default rollupFactory({
disableUmd: true,
Expand Down Expand Up @@ -40,7 +39,7 @@ export default rollupFactory({
],
},
}),
copy({
rollupPlugins.copy({
targets: [
{
src: "src/styles",
Expand Down
1 change: 0 additions & 1 deletion packages/easyops-illustrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"sideEffects": false,
"devDependencies": {
"@next-core/rollup-config-factory": "^2.6.1",
"@rollup/plugin-url": "^8.0.0",
"change-case": "^4.1.2",
"fs-extra": "^10.1.0",
"klaw-sync": "^6.0.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/easyops-illustrations/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { rollupFactory } from "@next-core/rollup-config-factory";
import url from "@rollup/plugin-url";
import { rollupFactory, rollupPlugins } from "@next-core/rollup-config-factory";
import path from "path";

export default rollupFactory({
umdName: "EasyopsIllustrations",
plugins: [
url({
rollupPlugins.url({
include: ["**/*.png", "**/*.gif"],
fileName: "[dirname][name].[hash][extname]",
destDir: "dist/illustrations",
Expand Down
1 change: 1 addition & 0 deletions packages/rollup-config-factory/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exports.rollupPlugins = {
nodeResolve,
commonjs,
json,
url,
image,
copy,
};
Expand Down