From c7631b30d77a9f013745fc5310cf3d204867b33a Mon Sep 17 00:00:00 2001 From: NGPixel Date: Fri, 3 Jul 2020 20:24:44 -0400 Subject: [PATCH] fix: missing modernizr in webpack prod --- dev/webpack/webpack.prod.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev/webpack/webpack.prod.js b/dev/webpack/webpack.prod.js index 28edf7be..5dda02d5 100644 --- a/dev/webpack/webpack.prod.js +++ b/dev/webpack/webpack.prod.js @@ -179,6 +179,10 @@ module.exports = { outputPath: 'fonts/' } }] + }, + { + loader: 'webpack-modernizr-loader', + test: /\.modernizrrc\.js$/ } ] }, @@ -261,7 +265,8 @@ module.exports = { // Duplicates fixes: 'apollo-link': path.join(process.cwd(), 'node_modules/apollo-link'), 'apollo-utilities': path.join(process.cwd(), 'node_modules/apollo-utilities'), - 'uc.micro': path.join(process.cwd(), 'node_modules/uc.micro') + 'uc.micro': path.join(process.cwd(), 'node_modules/uc.micro'), + 'modernizr$': path.resolve(process.cwd(), 'client/.modernizrrc.js') }, extensions: [ '.js',