1{
2 type: 'javascript/auto',
3 test: /\.json$/,
4 use: [ 'file-loader' ],
5 include: /\.\/config/ // for e.g, but better to only copy particular JSON files (not all)
6}
1 {
2 type: 'javascript/auto',
3 test: /\.json$/,
4 use: ['file-loader'],
5 include: /\/dir\/.*\.json$/,
6 options: {
7 name: 'static/json/[name].[hash:8].[ext]',
8 }
9 },
10