From c239551713e7e451d346042de4fc9b30c6835cbd Mon Sep 17 00:00:00 2001 From: Alex Zherdev Date: Sat, 30 Jul 2016 20:51:27 +0300 Subject: [PATCH] Accept version when loading fonts e.g. font-awesome (#298) * Accept version when loading fonts e.g. font-awesome * Add query string support to mp4/webm --- config/webpack.config.dev.js | 4 ++-- config/webpack.config.prod.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index b2f274fe92e..5a5a2ff6122 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -73,7 +73,7 @@ module.exports = { loader: 'json' }, { - test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)$/, + test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)(\?.*)?$/, include: [paths.appSrc, paths.appNodeModules], loader: 'file', query: { @@ -81,7 +81,7 @@ module.exports = { } }, { - test: /\.(mp4|webm)$/, + test: /\.(mp4|webm)(\?.*)?$/, include: [paths.appSrc, paths.appNodeModules], loader: 'url', query: { diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 010f47fd1b5..bc1887df177 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -82,7 +82,7 @@ module.exports = { loader: 'json' }, { - test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)$/, + test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)(\?.*)?$/, include: [paths.appSrc, paths.appNodeModules], loader: 'file', query: { @@ -90,7 +90,7 @@ module.exports = { } }, { - test: /\.(mp4|webm)$/, + test: /\.(mp4|webm)(\?.*)?$/, include: [paths.appSrc, paths.appNodeModules], loader: 'url', query: {