Skip to content

Commit

Permalink
fix(availitiy-workflow-angular): enable allChunks in ExtractTextPlugin
Browse files Browse the repository at this point in the history
Closes #141
  • Loading branch information
Rob McGuinness committed Mar 29, 2018
1 parent d5bacfb commit cd5a6dc
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-angular/webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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')
],
alias: {
app: path.resolve(settings.app(), 'app-module')
},
Expand Down Expand Up @@ -201,7 +206,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-angular/webpack.config.profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,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 @@ -154,7 +159,9 @@ const config = {
}
}),

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

new DuplicatePackageCheckerPlugin(),

Expand Down

0 comments on commit cd5a6dc

Please sign in to comment.