Skip to content

Commit

Permalink
fix(availitiy-workflow-react): enable allChunks in ExtractTextPlugin
Browse files Browse the repository at this point in the history
Close #141
  • Loading branch information
Rob McGuinness committed Mar 29, 2018
1 parent 76c9f5e commit d5bacfb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions packages/availity-workflow-react/webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
},
Expand Down Expand Up @@ -123,7 +128,9 @@ const config = {
}
}),

new ExtractTextPlugin(`css/${settings.css()}`),
new ExtractTextPlugin(`css/${settings.css()}`, {
allChunks: true
}),

new CopyWebpackPlugin(
[
Expand Down
11 changes: 9 additions & 2 deletions packages/availity-workflow-react/webpack.config.profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
},
Expand Down Expand Up @@ -120,7 +125,9 @@ const config = {
}
}),

new ExtractTextPlugin(`css/${settings.css()}`),
new ExtractTextPlugin(`css/${settings.css()}`, {
allChunks: true
}),

new DuplicatePackageCheckerPlugin(),

Expand Down

0 comments on commit d5bacfb

Please sign in to comment.