From d5bacfb7d3f158f1fcabccfe55d723af0d3f824b Mon Sep 17 00:00:00 2001 From: Rob McGuinness Date: Thu, 29 Mar 2018 12:48:13 -0400 Subject: [PATCH] fix(availitiy-workflow-react): enable allChunks in ExtractTextPlugin Close #141 --- .../webpack.config.production.js | 11 +++++++++-- .../availity-workflow-react/webpack.config.profile.js | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/packages/availity-workflow-react/webpack.config.production.js b/packages/availity-workflow-react/webpack.config.production.js index c49e73ca..15d97fa8 100644 --- a/packages/availity-workflow-react/webpack.config.production.js +++ b/packages/availity-workflow-react/webpack.config.production.js @@ -38,7 +38,12 @@ const config = { resolve: { // Tell webpack what directories should be searched when resolving modules - modules: [settings.app(), 'node_modules', path.join(settings.project(), 'node_modules'), path.join(__dirname, 'node_modules')], + modules: [ + settings.app(), + 'node_modules', + path.join(settings.project(), 'node_modules'), + path.join(__dirname, 'node_modules') + ], symlinks: true, extensions: ['.js', '.jsx', '.json', '.css', 'scss'] }, @@ -123,7 +128,9 @@ const config = { } }), - new ExtractTextPlugin(`css/${settings.css()}`), + new ExtractTextPlugin(`css/${settings.css()}`, { + allChunks: true + }), new CopyWebpackPlugin( [ diff --git a/packages/availity-workflow-react/webpack.config.profile.js b/packages/availity-workflow-react/webpack.config.profile.js index 8ae6cd65..e8a5d396 100644 --- a/packages/availity-workflow-react/webpack.config.profile.js +++ b/packages/availity-workflow-react/webpack.config.profile.js @@ -36,7 +36,12 @@ const config = { resolve: { // Tell webpack what directories should be searched when resolving modules - modules: [settings.app(), 'node_modules', path.join(settings.project(), 'node_modules'), path.join(__dirname, 'node_modules')], + modules: [ + settings.app(), + 'node_modules', + path.join(settings.project(), 'node_modules'), + path.join(__dirname, 'node_modules') + ], symlinks: true, extensions: ['.js', '.jsx', '.json', '.css', 'scss'] }, @@ -120,7 +125,9 @@ const config = { } }), - new ExtractTextPlugin(`css/${settings.css()}`), + new ExtractTextPlugin(`css/${settings.css()}`, { + allChunks: true + }), new DuplicatePackageCheckerPlugin(),