Skip to content

Commit

Permalink
Ensure terser cache resides with other caches
Browse files Browse the repository at this point in the history
  • Loading branch information
pastelsky committed Aug 2, 2023
1 parent ed3de6c commit 9abe0c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/makeWebpackConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import TerserPlugin from 'terser-webpack-plugin'
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
import CssoWebpackPlugin from 'csso-webpack-plugin'
import WriteFilePlugin from 'write-file-webpack-plugin'
import path from 'path'

const log = require('debug')('bp:webpack')
import escapeRegex from 'escape-string-regexp'
Expand All @@ -13,6 +14,7 @@ import { ESBuildMinifyPlugin } from 'esbuild-loader'
import VueLoaderPlugin from 'vue-loader/lib/plugin'

import { Externals } from '../common.types'
import config from './config'

type MakeWebpackConfigOptions = {
packageName: string
Expand Down Expand Up @@ -88,6 +90,7 @@ export default function makeWebpackConfig({
? [
new TerserPlugin({
parallel: true,
cache: path.join(config.tmp, 'cache', 'terser-cache'),
terserOptions: {
ie8: false,
output: {
Expand Down

0 comments on commit 9abe0c6

Please sign in to comment.