mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 04:52:05 +00:00
feat: sourcemaps
This commit is contained in:
parent
12325b96f3
commit
d4677bc293
2 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Miru",
|
"name": "Miru",
|
||||||
"version": "4.0.2",
|
"version": "4.0.3",
|
||||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||||
"main": "build/main.js",
|
"main": "build/main.js",
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ const isDev = mode === 'development'
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
{
|
{
|
||||||
|
devtool: isDev ? 'eval' : 'source-map',
|
||||||
entry: join(__dirname, 'src', 'background', 'background.js'),
|
entry: join(__dirname, 'src', 'background', 'background.js'),
|
||||||
output: {
|
output: {
|
||||||
path: join(__dirname, 'build'),
|
path: join(__dirname, 'build'),
|
||||||
|
|
@ -38,6 +39,7 @@ module.exports = [
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
devtool: isDev ? 'eval' : 'source-map',
|
||||||
entry: join(__dirname, 'src', 'renderer', 'src', 'main.js'),
|
entry: join(__dirname, 'src', 'renderer', 'src', 'main.js'),
|
||||||
output: {
|
output: {
|
||||||
path: join(__dirname, 'build'),
|
path: join(__dirname, 'build'),
|
||||||
|
|
@ -120,6 +122,7 @@ module.exports = [
|
||||||
target: 'web'
|
target: 'web'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
devtool: isDev ? 'eval' : 'source-map',
|
||||||
entry: join(__dirname, 'src', 'preload', 'preload.js'),
|
entry: join(__dirname, 'src', 'preload', 'preload.js'),
|
||||||
output: {
|
output: {
|
||||||
path: join(__dirname, 'build'),
|
path: join(__dirname, 'build'),
|
||||||
|
|
@ -132,6 +135,7 @@ module.exports = [
|
||||||
target: 'electron20.0-preload'
|
target: 'electron20.0-preload'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
devtool: isDev ? 'eval' : 'source-map',
|
||||||
entry: join(__dirname, 'src', 'main', 'main.js'),
|
entry: join(__dirname, 'src', 'main', 'main.js'),
|
||||||
output: {
|
output: {
|
||||||
path: join(__dirname, 'build'),
|
path: join(__dirname, 'build'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue