#52: add hash into font names

This commit is contained in:
SleepWalker
2016-05-12 07:50:30 +03:00
parent a81a2d6205
commit c1723d09d7
2 changed files with 5 additions and 1 deletions

View File

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

View File

@@ -156,6 +156,10 @@ var webpackConfig = {
test: /\.(png|gif|jpg)$/, test: /\.(png|gif|jpg)$/,
loader: 'url?limit=1000' loader: 'url?limit=1000'
}, },
{ // TODO: увы, эта штука пока не работает. Хеш добавляется через ./webpack/node-sass-iconfont-importer
test: /\.(woff|woff2|eot|ttf)$/,
loader: 'url'
},
{ {
test: /\.json$/, test: /\.json$/,
exclude: /intl\.json/, exclude: /intl\.json/,