Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #support #json #file
ADD COMMENT
Topic
Name
1+5 =