showing results for - "file loader support json file"
Bryan
20 Jun 2020
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}
Eddie
04 May 2018
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