From d884e1afbd7c008b61bedc80f822b069ec426c32 Mon Sep 17 00:00:00 2001 From: Will Roberts Date: Thu, 22 Jun 2017 11:45:56 +0200 Subject: [PATCH] webpack config: fix broken regex --- {{cookiecutter.app_name}}/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.app_name}}/webpack.config.js b/{{cookiecutter.app_name}}/webpack.config.js index db52d4f..d1cb4a5 100644 --- a/{{cookiecutter.app_name}}/webpack.config.js +++ b/{{cookiecutter.app_name}}/webpack.config.js @@ -43,7 +43,7 @@ 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|png|jpe?g|gif|ico)(\?.*))$/i, + { 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 } }, ]