Skip to content

Commit

Permalink
Add clean:views npm script (#2176)
Browse files Browse the repository at this point in the history
Since views are in a predictable location within the theme, this might
be handy. A side effect of adding this is that generated views are now
cleared on every production build, which might be a good thing. If not,
it’s not hard to change.
  • Loading branch information
knowler authored and QWp6t committed May 4, 2019
1 parent 29e6dd2 commit 7033c34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"mix:hot": "webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"clean": "run-p clean:*",
"clean:dist": "rimraf dist",
"clean:views": "rimraf storage/framwork/views/*.php",
"lint": "run-s -c lint:*",
"lint:scripts": "eslint resources/assets/scripts",
"lint:styles": "stylelint \"resources/assets/**/*.{vue,css,sass,scss,sss,less}\"",
Expand Down

0 comments on commit 7033c34

Please sign in to comment.