Keep url-loader for images
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
11
webpack.js
11
webpack.js
@@ -12,6 +12,17 @@ const config = {
|
|||||||
jsonpFunction: 'webpackJsonpOCADeck',
|
jsonpFunction: 'webpackJsonpOCADeck',
|
||||||
chunkFilename: '[name].js?v=[contenthash]',
|
chunkFilename: '[name].js?v=[contenthash]',
|
||||||
},
|
},
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.(png|jpg|gif|svg)$/,
|
||||||
|
loader: 'url-loader',
|
||||||
|
options: {
|
||||||
|
name: '[name].[ext]?[hash]'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['*', '.js', '.vue', '.json'],
|
extensions: ['*', '.js', '.vue', '.json'],
|
||||||
modules: [
|
modules: [
|
||||||
|
|||||||
Reference in New Issue
Block a user