@ -188,7 +188,7 @@ export default {
filename : 'js/monaco-[name].[contenthash:8].worker.js' ,
filename : 'js/monaco-[name].[contenthash:8].worker.js' ,
} ) ,
} ) ,
isProduction ? new LicenseCheckerWebpackPlugin ( {
isProduction ? new LicenseCheckerWebpackPlugin ( {
outputFilename : ' js/ licenses.txt',
outputFilename : ' licenses.txt',
outputWriter : ( { dependencies } ) => {
outputWriter : ( { dependencies } ) => {
const line = '-' . repeat ( 80 ) ;
const line = '-' . repeat ( 80 ) ;
const goJson = readFileSync ( 'assets/go-licenses.json' , 'utf8' ) ;
const goJson = readFileSync ( 'assets/go-licenses.json' , 'utf8' ) ;
@ -211,7 +211,7 @@ export default {
} ,
} ,
emitError : true ,
emitError : true ,
allow : '(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC OR CPAL-1.0 OR Unlicense OR EPL-1.0 OR EPL-2.0)' ,
allow : '(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC OR CPAL-1.0 OR Unlicense OR EPL-1.0 OR EPL-2.0)' ,
} ) : new AddAssetPlugin ( ' js/ licenses.txt', ` Licenses are disabled during development ` ) ,
} ) : new AddAssetPlugin ( ' licenses.txt', ` Licenses are disabled during development ` ) ,
] ,
] ,
performance : {
performance : {
hints : false ,
hints : false ,
@ -239,7 +239,7 @@ export default {
entrypoints : false ,
entrypoints : false ,
excludeAssets : [
excludeAssets : [
/^js\/monaco-language-.+\.js$/ ,
/^js\/monaco-language-.+\.js$/ ,
! isProduction && /^ js\/ licenses.txt$/,
! isProduction && /^ licenses.txt$/,
] . filter ( Boolean ) ,
] . filter ( Boolean ) ,
groupAssetsByChunk : false ,
groupAssetsByChunk : false ,
groupAssetsByEmitStatus : false ,
groupAssetsByEmitStatus : false ,