-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WRN-18582: Migrate to webpack5 (#90)
* WRN-18582: webpack5 initial commit Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * WRN-18582: Migrated isomorphic and snapshot plugin Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update verbose plugin Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix travis errors Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update dependencies Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * fix based on review Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected]) * update shrinkwrap Enact-DCO-1.0-Signed-off-by: Mikyung Kim ([email protected])
- Loading branch information
1 parent
10e795c
commit 9a5cd1e
Showing
12 changed files
with
1,573 additions
and
5,623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
const helper = require('../config-helper'); | ||
const VerboseLogPlugin = require('../plugins/VerboseLogPlugin'); | ||
|
||
module.exports = { | ||
apply: function (config) { | ||
return config.plugins.push(new VerboseLogPlugin()); | ||
const prerenderInstance = helper.getPluginByName(config, 'PrerenderPlugin'); | ||
const snapshotPluginInstance = helper.getPluginByName(config, 'SnapshotPlugin'); | ||
|
||
return config.plugins.push( | ||
new VerboseLogPlugin({ | ||
prerenderPlugin: prerenderInstance && prerenderInstance.constructor, | ||
snapshotPlugin: snapshotPluginInstance && snapshotPluginInstance.constructor | ||
}) | ||
); | ||
} | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.