webpack - require() inside require()'d file -


my webpack config compiles .scss files css in pretty standard way:

    {         test: /\.scss$/,         exclude: /(node_modules|bower_components)/,         loaders: ['style', 'css', 'sass']     } 

what i'd do, though, have url , file loaders work inside *.scss files, end goal of inlining smaller images:

&.backdrop {     background-image: require('../../assets/images/backdrop-1.jpg'); } 

it seems webpack ignoring require() call, though, css results identical code above (i.e. browser told try , render background image found @ require('../../' [etc etc]. loader i've been trying above:

    {         test: /\.jpg$/,         loader: 'url',         query: {             limit: 250000         }     } 

can suggest i'm going wrong?


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -