mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
feat(webpack): allow watching node_modules (#9781)
This commit is contained in:
@ -124,6 +124,13 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
],
|
||||
});
|
||||
|
||||
// allow watching node_modules
|
||||
config.when(env.watchNodeModules, (config) => {
|
||||
config.set('snapshot', {
|
||||
managedPaths: [],
|
||||
});
|
||||
});
|
||||
|
||||
// Set up Terser options
|
||||
config.optimization.minimizer('TerserPlugin').use(TerserPlugin, [
|
||||
{
|
||||
|
Reference in New Issue
Block a user