Skip to content

Commit 6eb74d1

Browse files
committed
Moves .less bundling to palette rollup config
1 parent 581ef3f commit 6eb74d1

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

packages/palette/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
"publishConfig": {
1616
"access": "public"
1717
},
18+
"dependencies": {},
1819
"devDependencies": {
1920
"@leafygreen-ui/emotion": "workspace:^",
2021
"@leafygreen-ui/lib": "workspace:^",
22+
"@rollup/plugin-url": "8.0.2",
2123
"polished": "^4.2.2"
2224
},
2325
"gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0",
@@ -28,6 +30,5 @@
2830
},
2931
"bugs": {
3032
"url": "https://jira.mongodb.org/projects/PD/summary"
31-
},
32-
"dependencies": {}
33+
}
3334
}

packages/palette/rollup.config.mjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import urlPlugin from '@rollup/plugin-url';
2+
import {
3+
esmConfig,
4+
umdConfig,
5+
storiesConfig,
6+
} from '@lg-tools/build/config/rollup.config.mjs';
7+
8+
export default [
9+
{
10+
...esmConfig,
11+
plugins: [
12+
...esmConfig.plugins,
13+
urlPlugin({
14+
limit: 0,
15+
include: ['**/*.less'],
16+
fileName: '[name][extname]',
17+
}),
18+
],
19+
},
20+
{
21+
...umdConfig,
22+
plugins: [
23+
...esmConfig.plugins,
24+
urlPlugin({
25+
limit: 0,
26+
include: ['**/*.less'],
27+
fileName: '[name][extname]',
28+
}),
29+
],
30+
},
31+
storiesConfig,
32+
];

0 commit comments

Comments
 (0)