Webpack's default rule images conflicts with all of the provided examples. To get this to work (at least with a new project created by the vue-cli), you need to either place your new rule before the default rule, or delete the default rule. This detail should be added to the examples.
I don't know how to do this with the standard config, but with chainWebpack, it looks something like this:
Webpack's default rule
images
conflicts with all of the provided examples. To get this to work (at least with a new project created by thevue-cli
), you need to either place your new rule before the default rule, or delete the default rule. This detail should be added to the examples.I don't know how to do this with the standard config, but with
chainWebpack
, it looks something like this:Note the use of
.before('images')
. That part is key. Here is my StackOverflow post from when this caused me hours of pain, just in case.