Can't disable cache using js api #9763
-
As far as I know I can disable cache using CLI by adding --no-cache, but how can I do it in js api const Fs = require('node:fs');
const Path = require('node:path')
const {Parcel} = require('@parcel/core');
let bundler = new Parcel({
entries: './test1/test.js',
defaultConfig: '@parcel/config-default',
targets: {
default: {
distEntry:'test.js',
distDir: Path.join(process.cwd(),`test2`),
},
},
shouldDisableCache:true,
});
bundler.run() |
Beta Was this translation helpful? Give feedback.
Answered by
mischnic
Jun 4, 2024
Replies: 1 comment
-
is equivalent to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mischnic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is equivalent to
--no-cache