Last active
January 20, 2019 02:17
-
-
Save devonzuegel/36aa56cc7baa85f0db4cad5652a6a0f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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