Skip to content

Commit

Permalink
Fix compiler “Cannot find namespace 'minimatch'”
Browse files Browse the repository at this point in the history
The webpack plugin `clean-webpack-plugin` uses incompatible types for its dependant glob and minimatch versions

Removing it as we already set `{ clean: true }` in the webpack config
  • Loading branch information
colinrotherham committed Feb 21, 2023
1 parent 6ecd97f commit 046f237
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 362 deletions.
1 change: 0 additions & 1 deletion docs/examples/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"devDependencies": {
"babel-loader": "^9.1.2",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"html5shiv": "^3.7.3",
"postcss-loader": "^7.0.2",
Expand Down
4 changes: 0 additions & 4 deletions docs/examples/webpack/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { dirname, resolve } = require('path')

const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const CopyPlugin = require('copy-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')

Expand Down Expand Up @@ -100,9 +99,6 @@ module.exports = ({ WEBPACK_SERVE }, { mode }) => ({
to: './assets/javascripts'
}
]
}),
new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: ['**/*', '!**/{fonts,images}/**']
})
],

Expand Down
Loading

0 comments on commit 046f237

Please sign in to comment.