VeeK
0
Q:

file-loader support json file

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

New to Communities?

Join the community