Skip to content

Commit

Permalink
.ts files in dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Hendrey committed Mar 21, 2024
1 parent d4833ae commit f3f7ac6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions webpack.config.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@ export default {
new webpack.DefinePlugin({
BUILD_TARGET: JSON.stringify('web'),
}),
//make sure the .ts files go into dist for sourcemaps
new CopyPlugin({
patterns: [
{
from: 'src/**/*.ts', // Match only .ts files within the src directory
to: 'src/[name][ext]', // Copy to dist/src while retaining the file names and extensions
globOptions: {
ignore: [
'**/test/**', // Exclude the src/test directory
],
},
},
],
})

],


Expand Down
14 changes: 14 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ export default {
new webpack.DefinePlugin({
BUILD_TARGET: JSON.stringify('web'),
}),
//make sure the .ts files go into dist for sourcemaps
new CopyPlugin({
patterns: [
{
from: 'src/**/*.ts', // Match only .ts files within the src directory
to: 'src/[name][ext]', // Copy to dist/src while retaining the file names and extensions
globOptions: {
ignore: [
'**/test/**', // Exclude the src/test directory
],
},
},
],
})
],


Expand Down

0 comments on commit f3f7ac6

Please sign in to comment.