From 3e19a9f068b816830ed6de2894565f9ab2057ec0 Mon Sep 17 00:00:00 2001 From: "Aob Web, Inc" <65432827+aobweb@users.noreply.github.com> Date: Mon, 8 Mar 2021 20:35:36 -0500 Subject: [PATCH] Update Scripts to the New Laravel Mix --- examples/wordpress-laravel-mix/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/wordpress-laravel-mix/README.md b/examples/wordpress-laravel-mix/README.md index 37ebfc8f..1228dc0d 100644 --- a/examples/wordpress-laravel-mix/README.md +++ b/examples/wordpress-laravel-mix/README.md @@ -68,12 +68,12 @@ Once you've done that, open your `package.json` file and add the following: ```json "scripts": { "dev": "npm run development", - "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", - "watch": "npm run development -- --watch", - "watch-poll": "npm run watch -- --watch-poll", - "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", + "development": "mix", + "watch": "mix watch", + "watch-poll": "mix watch -- --watch-options-poll=1000", + "hot": "mix watch --hot", "prod": "npm run production", - "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" + "production": "mix --production" }, ``` @@ -99,4 +99,4 @@ npm run dev ## Keep building ```bash npm run watch -``` \ No newline at end of file +```