mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: emit source map
This commit is contained in:
parent
356c5afabd
commit
3018f00610
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,6 @@ const plugins = [
|
|||
},
|
||||
]),
|
||||
new ForkTsCheckerWebpackPlugin(),
|
||||
new webpack.SourceMapDevToolPlugin({}),
|
||||
]
|
||||
|
||||
const IN_PRODUCTION_MODE = process.env.NODE_ENV === 'production'
|
||||
|
|
@ -36,6 +35,7 @@ module.exports = {
|
|||
entry: {
|
||||
content: './src/content.tsx',
|
||||
},
|
||||
devtool: IN_PRODUCTION_MODE ? 'source-map' : 'eval-source-map',
|
||||
mode: IN_PRODUCTION_MODE ? 'production' : 'development',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue