From e13bbb8220e5f14e9db3d6d2b335fbe3914af5db Mon Sep 17 00:00:00 2001 From: jeerbl Date: Thu, 2 Feb 2017 16:17:03 +0100 Subject: [PATCH] Remove dot from extension in [ext] --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4acb456..98a5815 100644 --- a/index.js +++ b/index.js @@ -160,10 +160,10 @@ module.exports = function (content) { for (var i in formats) { var format = formats[i]; if (!embed) { - var filename = config.fileName || params.fileName || "[hash]-[fontname][ext]"; + var filename = config.fileName || params.fileName || "[hash]-[fontname].[ext]"; filename = filename .replace("[fontname]", fontconf.fontName) - .replace("[ext]", "." + format); + .replace("[ext]", format); var url = loaderUtils.interpolateName(this, filename, {