generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(asset): Inline source maps to enable debug in JCEF
The webapp is now built with a override of the default react-script webpack config, this override disables optimizations and inline source maps. Workaround of facebook/create-react-app#790, by using `react-script-rewired` and passing a custom webpack configuration override. The non-modifiable webpack config passed to react-script is located here : `excalidraw-assets/node_modules/react-scripts/config/webpack.config.js` Related to #7
- Loading branch information
Showing
3 changed files
with
26 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = function override(config, env) { | ||
// see https://webpack.js.org/configuration/ | ||
console.log("Disabling build minimizer (config-overrides.js)"); | ||
config.mode = "development"; | ||
config.optimization.minimize = false; | ||
config.optimization.minimizer = []; | ||
|
||
// https://webpack.js.org/configuration/devtool/ | ||
console.log("Inline SourceMaps (config-overrides.js)"); | ||
config.devtool = 'inline-source-maps' | ||
|
||
|
||
return config; | ||
}; |
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