Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

file-loader support json file

            {
                type: 'javascript/auto',
                test: /.json$/,
                use: ['file-loader'],
                include: //dir/.*.json$/,
                options: {
                    name: 'static/json/[name].[hash:8].[ext]',
                }
            },
Source by github.com #
 
PREVIOUS NEXT
Tagged: #support #json #file
ADD COMMENT
Topic
Name
8+3 =