Answers for "file-loader support json file"

0

file-loader support json file

{
                type: 'javascript/auto',
                test: /\.json$/,
                use: ['file-loader'],
                include: /\/dir\/.*\.json$/,
                options: {
                    name: 'static/json/[name].[hash:8].[ext]',
                }
            },
Posted by: Guest on July-12-2020
0

file-loader support json file

{
   type: 'javascript/auto',
   test: /\.json$/,
   use: [ 'file-loader' ],
   include: /\.\/config/  // for e.g, but better to only copy particular JSON files (not all)
}
Posted by: Guest on July-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language