chore: change webpack devtool option (#170)
This commit is contained in:
committed by
GitHub
parent
0a2326948c
commit
e57bdbbfc4
@@ -2,6 +2,7 @@
|
|||||||
"name": "chrome-wakatime",
|
"name": "chrome-wakatime",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "clap build",
|
||||||
"dev": "clap dev",
|
"dev": "clap dev",
|
||||||
"postinstall": "clap postinstall",
|
"postinstall": "clap postinstall",
|
||||||
"lint": "clap lint",
|
"lint": "clap lint",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const browserPolyfill = join(
|
|||||||
);
|
);
|
||||||
const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Configuration => {
|
const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Configuration => {
|
||||||
const cfg: webpack.Configuration = {
|
const cfg: webpack.Configuration = {
|
||||||
devtool: 'inline-source-map',
|
devtool: 'source-map',
|
||||||
entry: {
|
entry: {
|
||||||
background: [join(srcFolder, 'background.ts')],
|
background: [join(srcFolder, 'background.ts')],
|
||||||
devtools: [join(srcFolder, 'devtools.ts')],
|
devtools: [join(srcFolder, 'devtools.ts')],
|
||||||
|
|||||||
Reference in New Issue
Block a user