@@ -55,10 +55,6 @@ const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
5555// makes for a smoother build process.
5656const shouldInlineRuntimeChunk = process . env . INLINE_RUNTIME_CHUNK !== 'false' ;
5757
58- const imageInlineSizeLimit = parseInt (
59- process . env . IMAGE_INLINE_SIZE_LIMIT || '10000'
60- ) ;
61-
6258const STDLIB_PATH = './../../../../lib/node_modules' ;
6359
6460// style files regexes
@@ -135,12 +131,6 @@ module.exports = function(webpackEnv) {
135131 ] . filter ( Boolean ) ;
136132 if ( preProcessor ) {
137133 loaders . push (
138- {
139- loader : require . resolve ( 'resolve-url-loader' ) ,
140- options : {
141- sourceMap : isEnvProduction && shouldUseSourceMap ,
142- } ,
143- } ,
144134 {
145135 loader : require . resolve ( preProcessor ) ,
146136 options : {
@@ -376,17 +366,6 @@ module.exports = function(webpackEnv) {
376366 test : [ / \. h t m l $ / ] ,
377367 loader : require . resolve ( 'html-loader' )
378368 } ,
379- // "url" loader works like "file" loader except that it embeds assets
380- // smaller than specified limit in bytes as data URLs to avoid requests.
381- // A missing `test` is equivalent to a match.
382- {
383- test : [ / \. b m p $ / , / \. g i f $ / , / \. j p e ? g $ / , / \. p n g $ / ] ,
384- loader : require . resolve ( 'url-loader' ) ,
385- options : {
386- limit : imageInlineSizeLimit ,
387- name : 'static/media/[name].[hash:8].[ext]' ,
388- } ,
389- } ,
390369 // Process application JS with Babel.
391370 // The preset includes JSX, Flow, TypeScript, and some ESnext features.
392371 {
0 commit comments