#123: remove font duplicates during build

This commit is contained in:
SleepWalker 2016-06-18 19:34:12 +03:00
parent 54842aea9e
commit 006f8d531c
2 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ {
"files": ["icons/webfont/*"], "files": ["icons/webfont/*"],
"fileName": "[hash]-[fontname][ext]", "fileName": "assets/fonts/[fontname][ext]?[hash]",
"fontName": "ely-account-icons", "fontName": "ely-account-icons",
"cssTemplate": "icons.css.hbs", "cssTemplate": "icons.css.hbs",
"classPrefix": "", "classPrefix": "",

View File

@ -154,11 +154,7 @@ var webpackConfig = {
}, },
{ {
test: /\.(png|gif|jpg|svg)$/, test: /\.(png|gif|jpg|svg)$/,
loader: 'url?limit=1000' loader: 'url?limit=1000&name=assets/[name].[ext]?[hash]'
},
{ // TODO: увы, эта штука пока не работает. Хеш добавляется через ./webpack/node-sass-iconfont-importer
test: /\.(woff|woff2|eot|ttf)$/,
loader: 'url'
}, },
{ {
test: /\.json$/, test: /\.json$/,