From bbb1029385b6fc08b76534da4e46838920e3b480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 23 May 2021 18:14:16 +0200 Subject: [PATCH] Frontend installation instructions --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ffc57b7..45374f2 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,13 @@ This will create `airwire.ts` and `airwired.d.ts`. Open your `app.ts` and import import Airwire from './airwire' ``` +If you have an `app.js` file instead of an `app.ts` file, change the file suffix and update your `webpack.mix.js` file: + +```diff +- mix.js('resources/js/app.js', 'public/js') ++ mix.ts('resources/js/app.ts', 'public/js') +``` + And that's all! Airwire is fully installed. ## PHP components