From 7033c347458cefadd7d53ae1710649fd841397d0 Mon Sep 17 00:00:00 2001 From: Nathan Knowler Date: Sat, 4 May 2019 13:33:54 -0600 Subject: [PATCH] Add clean:views npm script (#2176) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 1faed960af..44451db99b 100644 --- a/package.json +++ b/package.json @@ -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}\"",