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:
林一二 2022-01-24 13:33:53 +08:00
parent 0612ee8ae6
commit 056bc2706c
2 changed files with 16 additions and 1 deletions

View file

@ -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 @typescript-eslint/no-var-requires */
const rules = require('./webpack.rules');
@ -15,7 +17,13 @@ module.exports = {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css'],
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: {
type: 'filesystem',
buildDependencies: {