mirror of https://github.com/apache/superset.git
The problem with the previous solution was that the `npm ci` command nuke the `node_modules` folder, including the `.cache` that was used by default. By moving the cache out of `node_modules` we get to both run `npm ci` and accelerate `TerserPlugin`
This commit is contained in:
parent
ec6657ab2d
commit
49868748e6
|
@ -77,3 +77,4 @@ celerybeat.pid
|
||||||
geckodriver.log
|
geckodriver.log
|
||||||
ghostdriver.log
|
ghostdriver.log
|
||||||
testCSV.csv
|
testCSV.csv
|
||||||
|
.terser-plugin-cache/
|
||||||
|
|
|
@ -95,4 +95,4 @@ cache:
|
||||||
- ~/.npm
|
- ~/.npm
|
||||||
- ~/.cache
|
- ~/.cache
|
||||||
- ~/.travis_cache/
|
- ~/.travis_cache/
|
||||||
- superset/assets/node_modules/.cache/terser-webpack-plugin/
|
- superset/assets/.terser-plugin-cache/
|
||||||
|
|
|
@ -270,7 +270,7 @@ const config = {
|
||||||
if (!isDevMode) {
|
if (!isDevMode) {
|
||||||
config.optimization.minimizer = [
|
config.optimization.minimizer = [
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
cache: true,
|
cache: '.terser-plugin-cache/',
|
||||||
parallel: true,
|
parallel: true,
|
||||||
extractComments: true,
|
extractComments: true,
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue