Skip to content

Commit

Permalink
Merge pull request #125 from Nuzhy-Deriv/nuzhy/enable-sourcemaps
Browse files Browse the repository at this point in the history
Nuzhy/_/sourmaps enabled for easy debugging
  • Loading branch information
prince-deriv authored Sep 17, 2024
2 parents bd3d104 + 5b99630 commit af94c36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const config = {
],
},
],
require.resolve('./plugins/custom-webpack-plugin'),
],

presets: [
Expand Down
10 changes: 10 additions & 0 deletions plugins/custom-webpack-plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default function customWebpackPlugin(context, options) {
return {
name: 'custom-webpack-plugin',
configureWebpack(config, isServer, utils) {
return {
devtool: 'source-map', // Enable source maps
};
},
};
}

0 comments on commit af94c36

Please sign in to comment.