Skip to content

Commit

Permalink
webpack.mix.js modified
Browse files Browse the repository at this point in the history
  • Loading branch information
pilpod committed Jan 24, 2021
1 parent a23651b commit 138cfb2
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 9 deletions.
160 changes: 152 additions & 8 deletions public/js/app.js

Large diffs are not rendered by default.

File renamed without changes.
4 changes: 4 additions & 0 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,9 @@
</div>
</div>
</div>

<div id="react"></div>

<script src="{{ asset('js/app.js') }}"></script>
</body>
</html>
6 changes: 5 additions & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const mix = require('laravel-mix');
|
*/

mix.js('resources/js/app.js', 'public/js')
mix.js('resources/js/app.jsx', 'public/js')
.react()
.sass('resources/sass/app.scss', 'public/css')
.sourceMaps();


// mix.js('resources/js/app.jsx', 'public/js').react();

0 comments on commit 138cfb2

Please sign in to comment.