Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/config/webpack.config.js
Show First 20 Lines • Show All 352 Lines • ▼ Show 20 Lines | return { | ||||
ascii_only: true, | ascii_only: true, | ||||
}, | }, | ||||
}, | }, | ||||
// Use multi-process parallel running to improve the build speed | // Use multi-process parallel running to improve the build speed | ||||
// Default number of concurrent runs: os.cpus().length - 1 | // Default number of concurrent runs: os.cpus().length - 1 | ||||
// Disabled on WSL (Windows Subsystem for Linux) due to an issue with Terser | // Disabled on WSL (Windows Subsystem for Linux) due to an issue with Terser | ||||
// https://github.com/webpack-contrib/terser-webpack-plugin/issues/21 | // https://github.com/webpack-contrib/terser-webpack-plugin/issues/21 | ||||
parallel: !isWsl, | parallel: !isWsl, | ||||
// Enable file caching | |||||
cache: true, | |||||
sourceMap: shouldUseSourceMap, | |||||
}), | }), | ||||
// This is only used in production mode | // This is only used in production mode | ||||
new OptimizeCSSAssetsPlugin({ | new OptimizeCSSAssetsPlugin({ | ||||
cssProcessorOptions: { | cssProcessorOptions: { | ||||
parser: safePostCssParser, | parser: safePostCssParser, | ||||
map: shouldUseSourceMap | map: shouldUseSourceMap | ||||
? { | ? { | ||||
// `inline: false` forces the sourcemap to be output into a | // `inline: false` forces the sourcemap to be output into a | ||||
▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines |