Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a5e2f1

Browse files
committed
update file-loader output to include [path] placeholder to avoid overwritten assets (SimulatedGREG#329)
1 parent eaed737 commit 9a5e2f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/.electron-vue/webpack.renderer.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ let rendererConfig = {
8282
loader: 'url-loader',
8383
query: {
8484
limit: 10000,
85-
name: 'imgs/[name].[hash:7].[ext]'
85+
name: 'imgs/[path][name].[ext]'
8686
}
8787
}
8888
},
@@ -91,7 +91,7 @@ let rendererConfig = {
9191
loader: 'url-loader',
9292
options: {
9393
limit: 10000,
94-
name: 'media/[name].[hash:7].[ext]'
94+
name: 'media/[path][name].[ext]'
9595
}
9696
},
9797
{
@@ -100,7 +100,7 @@ let rendererConfig = {
100100
loader: 'url-loader',
101101
query: {
102102
limit: 10000,
103-
name: 'fonts/[name].[hash:7].[ext]'
103+
name: 'fonts/[path][name].[ext]'
104104
}
105105
}
106106
}

0 commit comments

Comments
 (0)