Skip to content

Commit

Permalink
webpack.common.js added comments about polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovannyJTT committed Aug 13, 2022
1 parent 2984e61 commit fe6563a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')

// configuring polyfill compatible with webpack5
// const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

module.exports = {
// target: "node" for in-nodejs environment
target: "web",

// Webpack will start looking in here
entry: [paths.src + '/index.js'],

Expand All @@ -16,6 +22,9 @@ module.exports = {

// Customization of the webpack build process
plugins: [
// configuring polyfill compatible with webpack5
// new NodePolyfillPlugin(),

// cleans build folder and unused resources when re-building
new CleanWebpackPlugin(),

Expand Down

0 comments on commit fe6563a

Please sign in to comment.