From 8696c884b1b5f9905d40133f48611aafe75a7e8a Mon Sep 17 00:00:00 2001 From: Will Roberts Date: Thu, 22 Jun 2017 10:59:56 +0200 Subject: [PATCH] process more stuff through file-loader --- {{cookiecutter.app_name}}/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.app_name}}/webpack.config.js b/{{cookiecutter.app_name}}/webpack.config.js index d24ed44..db52d4f 100644 --- a/{{cookiecutter.app_name}}/webpack.config.js +++ b/{{cookiecutter.app_name}}/webpack.config.js @@ -43,8 +43,8 @@ module.exports = { { test: /\.html$/, loader: 'raw-loader' }, { test: /\.css$/, loader: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader' }) }, { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff' }, - { test: /\.(ttf|eot|svg|ico)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'file-loader?context=' + rootAssetPath + '&name=[path][name].[hash].[ext]' }, - { test: /\.(png|jpe?g|gif|ico)(\?\S*)?$/, loader: 'url-loader?limit=100000' }, + { test: /\.(ttf|eot|svg|png|jpe?g|gif|ico)(\?.*))$/i, + loader: 'file-loader?context=' + rootAssetPath + '&name=[path][name].[hash].[ext]' }, { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader', query: { presets: ['es2015'], cacheDirectory: true } }, ] },