We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dc2803 commit 317d7e8Copy full SHA for 317d7e8
dash/development/build_process.py
@@ -76,6 +76,7 @@ def build(self, build=None):
76
self.npm()
77
self.bundles(build)
78
self.digest()
79
+ self.cleanModules()
80
81
@job("compute the hash digest for assets")
82
def digest(self):
@@ -146,6 +147,12 @@ def bundles(self, build=None):
146
147
) as fp:
148
fp.write(t.safe_substitute(versions))
149
150
+ @job("clean node_modules directory 🧹")
151
+ def cleanModules(self):
152
+ """Job to clean node_modules directory from installed Dash package."""
153
+ os.chdir(self.main)
154
+ run_command_with_process("rm -rf node_modules")
155
+
156
157
class Renderer(BuildProcess):
158
def __init__(self):
0 commit comments