diff --git a/ace-loader/src/compile-plugin.js b/ace-loader/src/compile-plugin.js index 1f71854852463adc3dea60bd2f0e44efcd3e4dd3..1fb3103d95f3cc012f98a3a443f5b0ea75e4ee7f 100644 --- a/ace-loader/src/compile-plugin.js +++ b/ace-loader/src/compile-plugin.js @@ -52,7 +52,8 @@ class ResultStates { const buildPath = this.options.build; const commonPaths = new Set(); const i18nPaths = new Set(); - const cachePath = path.resolve(process.env.cachePath, '.rich_cache'); + const cachePath = path.resolve(process.env.cachePath, process.env.DEVICE_LEVEL === 'rich' ? + '.rich_cache' : '.lite_cache'); const entryFile = path.join(cachePath, 'entry.json'); const entryPaths = new Set();