Skip to content

Instantly share code, notes, and snippets.

@devonzuegel
Last active January 20, 2019 02:17
Show Gist options
  • Save devonzuegel/36aa56cc7baa85f0db4cad5652a6a0f4 to your computer and use it in GitHub Desktop.
Save devonzuegel/36aa56cc7baa85f0db4cad5652a6a0f4 to your computer and use it in GitHub Desktop.
import inlineStyles from './styles?inline' // Will be loaded with url-loader
import externalStyles from './styles?external' // Will be loaded with file-loader
/** The following rules would make the above imports behave in different ways: **/
{
test: /\.css$/,
oneOf: [
{
resourceQuery: /inline/,
use: 'url-loader',
}, {
resourceQuery: /external/,
use: 'file-loader',
},
],
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment