Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoqblin-hiptest authored Nov 22, 2021
1 parent ecc0d8b commit 3cfb9d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const path = require('path')
const TerserPlugin = require('terser-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const { DefinePlugin, ProvidePlugin } = require('webpack')
const { DefinePlugin, ProvidePlugin, SourceMapDevToolPlugin } = require('webpack')

module.exports = {
mode: 'development',
devtool: false,
context: path.resolve(__dirname, 'dev'),
entry: './index.js',
devServer: {
Expand Down Expand Up @@ -66,6 +67,9 @@ module.exports = {
}),
new ProvidePlugin({
Buffer: ['buffer', 'Buffer']
}),
new SourceMapDevToolPlugin({
exclude: /node_modules/
})
]
}

0 comments on commit 3cfb9d2

Please sign in to comment.