Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ssougnez/f6c9c9d9c72c32687976f8b3e7ff2b9d to your computer and use it in GitHub Desktop.
...
module.exports = {
...
module: {
rules: [
...
{
test: /\.(png|jpg|gif)$/,
use: {
loader: "file-loader?name=img/[name].[ext]"
}
}
]
},
...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment