Skip to content

Commit

Permalink
tmp: turn off source maps to test build
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Feb 12, 2024
1 parent f20c921 commit 06983b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ webpackConfig.optimization.splitChunks.minSize = 102400
webpackConfig.plugins.push(new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}))

// No source map for highlight.js languages
webpackConfig.devtool = false
webpackConfig.plugins.push(new webpack.SourceMapDevToolPlugin({
exclude: [/highlight/],
}))

webpackConfig.resolve.fallback = {
buffer: require.resolve('buffer'),
}
Expand Down

0 comments on commit 06983b3

Please sign in to comment.