Skip to content

Commit f28f53a

Browse files
committed
fix standard config dep, add assets hashes (SimulatedGREG#329)
1 parent 0ee26cb commit f28f53a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,25 @@ let rendererConfig = {
8282
loader: 'url-loader',
8383
query: {
8484
limit: 10000,
85-
name: 'imgs/[name].[ext]'
85+
name: 'imgs/[name].[hash:7].[ext]'
8686
}
8787
}
8888
},
89+
{
90+
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
91+
loader: 'url-loader',
92+
options: {
93+
limit: 10000,
94+
name: 'media/[name].[hash:7].[ext]'
95+
}
96+
},
8997
{
9098
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
9199
use: {
92100
loader: 'url-loader',
93101
query: {
94102
limit: 10000,
95-
name: 'fonts/[name].[ext]'
103+
name: 'fonts/[name].[hash:7].[ext]'
96104
}
97105
}
98106
}

template/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"eslint-loader": "^1.9.0",
111111
"eslint-plugin-html": "^3.1.1",
112112
{{#if_eq eslintConfig 'standard'}}
113+
"eslint-config-standard": "^10.2.1",
113114
"eslint-plugin-import": "^2.7.0",
114115
"eslint-plugin-node": "^5.1.1",
115116
"eslint-plugin-promise": "^3.5.0",

0 commit comments

Comments
 (0)