I have this code In my webpack.config.prod.js and I was wondering how do I exclude all json except one in a specific path like src/configs/configs<
webpack.config.prod.js
src/configs/configs
According to the Webpack documentation, you can do something like this.
exclude: { test: [ /\.html$/, /\.(js|jsx)$/, /\.css$/, /\.json$/, /\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/, ], exclude: [ 'src/configs/configs/your.json' ] }