mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
chore: format the output so it can be clicked
https://github.com/evanw/node-source-map-support/issues/296#issuecomment-1019542193
This commit is contained in:
parent
0612ee8ae6
commit
056bc2706c
2 changed files with 16 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||||
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||||
/* eslint-disable unicorn/prefer-module */
|
/* eslint-disable unicorn/prefer-module */
|
||||||
|
|
@ -40,6 +42,11 @@ module.exports = {
|
||||||
alias: webpackAlias,
|
alias: webpackAlias,
|
||||||
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json'],
|
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json'],
|
||||||
},
|
},
|
||||||
|
output: {
|
||||||
|
devtoolModuleFilenameTemplate: (info) => {
|
||||||
|
return `file:///${encodeURI(info.absoluteResourcePath)}`;
|
||||||
|
},
|
||||||
|
},
|
||||||
externals: [
|
externals: [
|
||||||
// TODO: simply external things will make require can't find things. May need some other way.
|
// TODO: simply external things will make require can't find things. May need some other way.
|
||||||
// nodeExternals({
|
// nodeExternals({
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||||
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||||
/* eslint-disable unicorn/prefer-module */
|
/* eslint-disable unicorn/prefer-module */
|
||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
const rules = require('./webpack.rules');
|
const rules = require('./webpack.rules');
|
||||||
|
|
@ -15,7 +17,13 @@ module.exports = {
|
||||||
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css'],
|
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css'],
|
||||||
fallback: { crypto: false },
|
fallback: { crypto: false },
|
||||||
},
|
},
|
||||||
output: { chunkFilename: 'main_window/[name].chunk.js', publicPath: '../' },
|
output: {
|
||||||
|
chunkFilename: 'main_window/[name].chunk.js',
|
||||||
|
publicPath: '../',
|
||||||
|
devtoolModuleFilenameTemplate: (info) => {
|
||||||
|
return `file:///${encodeURI(info.absoluteResourcePath)}`;
|
||||||
|
},
|
||||||
|
},
|
||||||
cache: {
|
cache: {
|
||||||
type: 'filesystem',
|
type: 'filesystem',
|
||||||
buildDependencies: {
|
buildDependencies: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue