Skip to content

Commit 54a63ba

Browse files
committed
fix: correctly copy js files to build
1 parent b972b95 commit 54a63ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gulpfile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ task('copy-js', () => {
5050
'!src/stories/**/*.{js,d.ts}',
5151
'!src/**/__stories__/**/*.{js,d.ts}',
5252
])
53+
.pipe(replace(/import '.+\.scss';/g, (match) => match.replace('.scss', '.css')))
5354
.pipe(dest(path.resolve(BUILD_DIR, 'esm')))
55+
.pipe(replace(/import '.+\.css';/g, ''))
5456
.pipe(dest(path.resolve(BUILD_DIR, 'cjs')));
5557
});
5658

0 commit comments

Comments
 (0)