chore(repo): fix webpack breakpoints not binding
This commit is contained in:
parent
711f55ab11
commit
a8596c8b4d
20
.vscode/launch.json
vendored
Normal file
20
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Attach to ebitemp-api",
|
||||
"port": 9229,
|
||||
"request": "attach",
|
||||
"restart": true,
|
||||
"skipFiles": [
|
||||
"<node_internals>/**",
|
||||
"${workspaceFolder}/node_modules/**/*.js"
|
||||
],
|
||||
"internalConsoleOptions": "neverOpen",
|
||||
"type": "node"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,9 +1,14 @@
|
||||
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
|
||||
const { join } = require('path');
|
||||
const { join, relative } = require('path');
|
||||
|
||||
const workspaceRoot = join(__dirname, '../../');
|
||||
module.exports = {
|
||||
output: {
|
||||
path: join(__dirname, '../../dist/apps/ebitemp-api'),
|
||||
devtoolModuleFilenameTemplate(info) {
|
||||
const rel = relative(workspaceRoot, info.absoluteResourcePath);
|
||||
return `webpack:///./${rel}`;
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
new NxAppWebpackPlugin({
|
||||
@ -11,10 +16,10 @@ module.exports = {
|
||||
compiler: 'tsc',
|
||||
main: './src/main.ts',
|
||||
tsConfig: './tsconfig.app.json',
|
||||
assets: ["./src/assets"],
|
||||
assets: ['./src/assets'],
|
||||
optimization: false,
|
||||
outputHashing: 'none',
|
||||
generatePackageJson: true,
|
||||
})
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user