test: use `options` object instead of inline query string

parent d0ccd174
......@@ -49,7 +49,13 @@ test('transform relative URLs and respects resolve alias', done => {
},
module: {
rules: [
{ test: /\.png$/, loader: 'file-loader?name=[name].[hash:6].[ext]' }
{
test: /\.png$/,
loader: 'file-loader',
options: {
name: '[name].[hash:6].[ext]'
}
}
]
}
}, ({ window, module }) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment