summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jvargas@gitlab.com>2018-05-29 11:40:18 -0500
committerJose <jvargas@gitlab.com>2018-05-29 11:40:18 -0500
commit9d2714543a31f48d93241217a68c2cab13775533 (patch)
treec90cef092b022bf9ac8b0a641b07e391df5087ff
parent65bfec654a1ff2894e7829573d266f8d63c846f2 (diff)
downloadgitlab-ce-9d2714543a31f48d93241217a68c2cab13775533.tar.gz
Add yarn clean step, to delete production compiled assetsadd-yarn-clean-step
-rw-r--r--doc/development/new_fe_guide/tips.md8
-rw-r--r--package.json1
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/development/new_fe_guide/tips.md b/doc/development/new_fe_guide/tips.md
index f0cdf52d618..881ad1662ae 100644
--- a/doc/development/new_fe_guide/tips.md
+++ b/doc/development/new_fe_guide/tips.md
@@ -1,3 +1,9 @@
# Tips
-> TODO: Add tips
+## Clearing production compiled assets
+
+To clear production compiled assets created with `yarn webpack-prod` you can run:
+
+```
+yarn clean
+```
diff --git a/package.json b/package.json
index 13be495b702..5285d7efcd6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,7 @@
{
"private": true,
"scripts": {
+ "clean": "rm -rf public/assets tmp/cache/*-loader",
"dev-server": "nodemon -w 'config/webpack.config.js' --exec 'webpack-dev-server --config config/webpack.config.js'",
"eslint": "eslint --max-warnings 0 --ext .js,.vue .",
"eslint-fix": "eslint --max-warnings 0 --ext .js,.vue --fix .",