[dev] Monorepo: monorepo-utils webpack config housekeeping. (#51998)

This commit is contained in:
Vladimir Reznichenko 2024-10-11 14:46:37 +02:00 committed by GitHub
parent f469bba6f2
commit 8502f5141a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,3 @@
const path = require( 'path' );
const CopyPlugin = require( 'copy-webpack-plugin' );
const buildMode = process.env.NODE_ENV || 'production';
@ -12,7 +11,7 @@ module.exports = {
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
include: [ __dirname + '/src' ],
},
],
},
@ -22,13 +21,16 @@ module.exports = {
plugins: [
new CopyPlugin( {
patterns: [
{ from: 'node_modules/figlet/fonts/Standard.flf', to: '../fonts/Standard.flf' },
{
from: 'node_modules/figlet/fonts/Standard.flf',
to: '../fonts/Standard.flf',
},
],
} ),
],
output: {
filename: 'index.js',
path: path.resolve( __dirname, 'dist' ),
path: __dirname + '/dist',
clean: true,
},
};