Первая версия ссупорта генерации шрифтов из иконок

This commit is contained in:
SleepWalker
2016-01-05 23:06:19 +02:00
parent c244a7b16b
commit f48533b70f
15 changed files with 23 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ var isTest = process.argv.some(function(arg) {
return arg.indexOf('karma') !== -1;
});
const CSS_LOADER = 'style!css?modules&importLoaders=1&localIdentName=[path][name]-[local]!postcss';
const CSS_LOADER = 'style!css?modules&importLoaders=2&localIdentName=[path][name]-[local]!postcss';
var webpackConfig = {
entry: {
@@ -107,15 +107,10 @@ var webpackConfig = {
plugins: ['transform-runtime', ['react-intl', {messagesDir: './dist/messages/'}]]
}
},
{ // DEPRECATED
test: /i18n\/.*\.less$/,
loader: CSS_LOADER + '!less'
},
{ // DEPRECATED
test: /\.less$/,
{
test: /\.font.(js|json)$/,
extractInProduction: true,
exclude: /i18n\/.*\.less$/,
loader: CSS_LOADER + '!less'
loader: CSS_LOADER + '!fontgen?types=woff,eot,ttf'
}
]
},