Skip to content

Commit

Permalink
feat: add devtools to options page
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Jul 24, 2019
1 parent 5120a29 commit f116da0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config-overrides.js
Expand Up @@ -9,11 +9,13 @@ module.exports = function override(/** @type{import("webpack").Configuration} */
else delete config.devtool
config.optimization.minimize = false
config.entry = {
devtools: 'react-devtools',
app: path.join(__dirname, './src/index.tsx'),
contentscript: path.join(__dirname, './src/content-script.ts'),
backgroundservice: path.join(__dirname, './src/background-service.ts'),
injectedscript: path.join(__dirname, './src/extension/injected-script/index.ts'),
}
if (env !== 'development') delete config.entry.devtools
config.output.filename = 'js/[name].js'
config.output.chunkFilename = 'js/[name].chunk.js'

Expand Down

0 comments on commit f116da0

Please sign in to comment.