FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sensor/webpack.config.js at main · weaklayer/sensor · GitHub
This repository was archived by the owner on Nov 21, 2024. It is now read-only.
weaklayer
sensor
Repository navigation
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
sensor
/
webpack.config.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (47 loc) · 1.13 KB
Breadcrumbs
sensor
/
webpack.config.js
Copy path
File metadata and controls
48 lines (47 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const
path
=
require
(
'path'
)
;
const
{
CleanWebpackPlugin
}
=
require
(
'clean-webpack-plugin'
)
;
const
CopyWebpackPlugin
=
require
(
'copy-webpack-plugin'
)
;
module
.
exports
=
{
mode
:
'production'
,
devtool
:
'source-map'
,
entry
:
{
background
:
'./src/background/background.ts'
,
content
:
'./src/content/content.ts'
}
,
module
:
{
rules
:
[
{
test
:
/
\.
t
s
x
?
$
/
,
use
:
[
{
loader
:
'ts-loader'
,
options
:
{
configFile
:
'tsconfig.json'
}
}
]
,
exclude
:
/
n
o
d
e
_
m
o
d
u
l
e
s
/
}
,
]
,
}
,
plugins
:
[
new
CleanWebpackPlugin
(
)
,
new
CopyWebpackPlugin
(
{
patterns
:
[
{
from
:
'LICENSE'
}
,
{
from
:
'node_modules/webextension-polyfill/dist/browser-polyfill.min.js'
}
,
{
from
:
'node_modules/webextension-polyfill/dist/browser-polyfill.min.js.map'
}
,
{
from
:
'icon16.png'
}
,
{
from
:
'icon48.png'
}
,
{
from
:
'icon128.png'
}
]
}
)
]
,
resolve
:
{
extensions
:
[
'.tsx'
,
'.ts'
,
'.js'
]
}
,
output
:
{
filename
:
'[name].js'
,
path
:
path
.
resolve
(
__dirname
,
'dist'
)
,
}
}
;
Back
|
FazBrowse Home
|
New Git URL