Merge branch 'add-yarn-clean-step' into 'master'

Add yarn clean step, to delete production compiled assets

See merge request gitlab-org/gitlab-ce!19212
This commit is contained in:
Mike Greiling 2018-05-31 14:48:57 +00:00
commit 915e563403
2 changed files with 8 additions and 1 deletions

View File

@ -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
```

View File

@ -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 .",