Add yarn clean step, to delete production compiled assets

This commit is contained in:
Jose 2018-05-29 11:40:18 -05:00
parent 65bfec654a
commit 9d2714543a
No known key found for this signature in database
GPG key ID: 01F49A6AE27697FB
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 .",