Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .erb/configs/webpack.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
* Base webpack config used across other specific configs
*/

import webpack from 'webpack';
import webpackPaths from './webpack.paths';
import { dependencies as externals } from '../../release/app/package.json';

import webpack from 'webpack'
import webpackPaths from './webpack.paths'
import { dependencies as externals } from '../../release/app/package.json'
import path from 'path'
import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin'
const configuration: webpack.Configuration = {
externals: [...Object.keys(externals || {})],

Expand Down Expand Up @@ -47,7 +48,10 @@ const configuration: webpack.Configuration = {
new webpack.EnvironmentPlugin({
NODE_ENV: 'production',
}),
new TsconfigPathsPlugin({
baseUrl: path.join(__dirname, '../..'), // path to tsconfig.json directory
}) as any,
],
};
}

export default configuration;
export default configuration
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "EditorConfig.EditorConfig"]
"recommendations": ["dbaeumer.vscode-eslint", "EditorConfig.EditorConfig", "esbenp.prettier-vscode"]
}
Loading