Skip to content

Commit

Permalink
fix: correctly copy js files to build
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Dec 16, 2021
1 parent b972b95 commit 54a63ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ task('copy-js', () => {
'!src/stories/**/*.{js,d.ts}',
'!src/**/__stories__/**/*.{js,d.ts}',
])
.pipe(replace(/import '.+\.scss';/g, (match) => match.replace('.scss', '.css')))
.pipe(dest(path.resolve(BUILD_DIR, 'esm')))
.pipe(replace(/import '.+\.css';/g, ''))
.pipe(dest(path.resolve(BUILD_DIR, 'cjs')));
});

Expand Down

0 comments on commit 54a63ba

Please sign in to comment.