Created
September 26, 2016 15:42
-
-
Save TheLarkInn/d7b08dd0b7a177508b3068c7f2f0212a to your computer and use it in GitHub Desktop.
Example of mixing query params between multiple loaders (which wasn't possible at one time) with webpack 2.
This file contains hidden or 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
module.exports = config; | |
const config = { | |
module: { | |
rules: [ //<=== 'loaders' works as a fallback but for .23+ best to start using "rules" instead. | |
{ | |
test: /\.less/, | |
loaders: [ | |
"style-loader", | |
{loader: "css-loader", query: {}}, | |
{loader: "less-loader", query: {}} | |
] | |
} | |
], | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment