@ -1,5 +1,6 @@
const fastGlob = require ( 'fast-glob' ) ;
const fastGlob = require ( 'fast-glob' ) ;
const wrapAnsi = require ( 'wrap-ansi' ) ;
const wrapAnsi = require ( 'wrap-ansi' ) ;
const AddAssetPlugin = require ( 'add-asset-webpack-plugin' ) ;
const CssMinimizerPlugin = require ( 'css-minimizer-webpack-plugin' ) ;
const CssMinimizerPlugin = require ( 'css-minimizer-webpack-plugin' ) ;
const FixStyleOnlyEntriesPlugin = require ( 'webpack-fix-style-only-entries' ) ;
const FixStyleOnlyEntriesPlugin = require ( 'webpack-fix-style-only-entries' ) ;
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
@ -273,7 +274,7 @@ module.exports = {
new MonacoWebpackPlugin ( {
new MonacoWebpackPlugin ( {
filename : 'js/monaco-[name].worker.js' ,
filename : 'js/monaco-[name].worker.js' ,
} ) ,
} ) ,
new LicenseWebpackPlugin ( {
isProduction ? new LicenseWebpackPlugin ( {
outputFilename : 'js/licenses.txt' ,
outputFilename : 'js/licenses.txt' ,
perChunkOutput : false ,
perChunkOutput : false ,
addBanner : false ,
addBanner : false ,
@ -281,6 +282,9 @@ module.exports = {
modulesDirectories : [
modulesDirectories : [
resolve ( _ _dirname , 'node_modules' ) ,
resolve ( _ _dirname , 'node_modules' ) ,
] ,
] ,
additionalModules : [
'@primer/octicons' ,
] . map ( ( name ) => ( { name , directory : resolve ( _ _dirname , ` node_modules/ ${ name } ` ) } ) ) ,
renderLicenses : ( modules ) => {
renderLicenses : ( modules ) => {
const line = '-' . repeat ( 80 ) ;
const line = '-' . repeat ( 80 ) ;
return modules . map ( ( module ) => {
return modules . map ( ( module ) => {
@ -294,7 +298,7 @@ module.exports = {
warnings : false ,
warnings : false ,
errors : true ,
errors : true ,
} ,
} ,
} ) ,
} ) : new AddAssetPlugin ( 'js/licenses.txt' , ` Licenses are disabled during development ` ) ,
] ,
] ,
performance : {
performance : {
hints : false ,
hints : false ,