Skip to content

Commit 5e3c3db

Browse files
committed
feat!: emit CSS files to dist instead of dist/static/css
1 parent 39ba4d9 commit 5e3c3db

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

examples/react-component-bundle/rslib.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export default defineConfig({
1010
output: {
1111
distPath: {
1212
root: './dist/esm',
13-
css: '.',
14-
cssAsync: '.',
1513
},
1614
},
1715
},
@@ -21,8 +19,6 @@ export default defineConfig({
2119
output: {
2220
distPath: {
2321
root: './dist/cjs',
24-
css: '.',
25-
cssAsync: '.',
2622
},
2723
},
2824
},

examples/vue-component-bundle/rslib.config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,7 @@ import { defineConfig } from '@rslib/core';
33

44
export default defineConfig({
55
plugins: [pluginVue()],
6-
lib: [
7-
{
8-
format: 'esm',
9-
output: {
10-
distPath: {
11-
css: '.',
12-
},
13-
},
14-
},
15-
],
6+
lib: [{ format: 'esm' }],
167
output: {
178
target: 'web',
189
},

packages/core/src/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,9 @@ export async function createConstantRsbuildConfig(): Promise<RsbuildConfig> {
463463
filenameHash: false,
464464
distPath: {
465465
js: './',
466+
jsAsync: './',
467+
css: './',
468+
cssAsync: './',
466469
},
467470
},
468471
});

0 commit comments

Comments
 (0)