File tree 5 files changed +14
-15
lines changed
5 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 12
12
],
13
13
"require" : {
14
14
"laravel/framework" : " ^5.8" ,
15
- "inertiajs/inertia-laravel" : " dev-master "
15
+ "inertiajs/inertia-laravel" : " ^0.1 "
16
16
},
17
17
"require-dev" : {
18
18
"orchestra/testbench" : " ^3.8"
Original file line number Diff line number Diff line change @@ -23,16 +23,14 @@ protected static function updatePackageArray(array $packages)
23
23
{
24
24
return array_merge ([
25
25
'@babel/plugin-syntax-dynamic-import ' => '^7.2.0 ' ,
26
- 'inertia ' => 'github:inertiajs/inertia ' ,
27
- 'inertia-vue ' => 'inertiajs/inertia-vue ' ,
26
+ '@inertiajs/ inertia ' => '^0.1.0 ' ,
27
+ '@inertiajs/ inertia-vue ' => '^0.1.0 ' ,
28
28
'vue-template-compiler ' => '^2.6.10 ' ,
29
29
], $ packages );
30
30
}
31
31
32
32
protected static function updateBootstrapping ()
33
33
{
34
- copy (__DIR__ .'/inertiajs-stubs/.babelrc ' , base_path ('.babelrc ' ));
35
-
36
34
copy (__DIR__ .'/inertiajs-stubs/webpack.mix.js ' , base_path ('webpack.mix.js ' ));
37
35
38
36
copy (__DIR__ .'/inertiajs-stubs/resources/js/app.js ' , resource_path ('js/app.js ' ));
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
require ( './bootstrap' )
2
2
3
- import Inertia from 'inertia-vue'
3
+ import { InertiaApp } from '@inertiajs/ inertia-vue'
4
4
import Vue from 'vue'
5
5
6
- Vue . use ( Inertia )
6
+ Vue . use ( InertiaApp )
7
7
8
8
let app = document . getElementById ( 'app' )
9
9
10
10
new Vue ( {
11
- render : h => h ( Inertia , {
11
+ render : h => h ( InertiaApp , {
12
12
props : {
13
13
initialPage : JSON . parse ( app . dataset . page ) ,
14
14
resolveComponent : ( name ) => {
Original file line number Diff line number Diff line change 1
1
const mix = require ( 'laravel-mix' )
2
2
const path = require ( 'path' )
3
3
4
- mix . sass ( 'resources/sass/app.scss' , 'public/css' )
5
- . js ( 'resources/js/app.js' , 'public/js' ) . webpackConfig ( {
6
- output : { chunkFilename : 'js/[name].[contenthash].js' } ,
4
+ mix . js ( 'resources/js/app.js' , 'public/js' )
5
+ . sass ( 'resources/sass/app.scss' , 'public/css' )
6
+ . webpackConfig ( {
7
+ output : { chunkFilename : 'js/[name].js?id=[chunkhash]' } ,
7
8
resolve : {
8
9
alias : {
9
- 'vue$' : 'vue/dist/vue.runtime.js' ,
10
+ 'vue$' : 'vue/dist/vue.runtime.esm. js' ,
10
11
'@' : path . resolve ( 'resources/js' ) ,
11
12
} ,
12
13
} ,
13
14
} )
15
+ . babelConfig ( {
16
+ plugins : [ '@babel/plugin-syntax-dynamic-import' ]
17
+ } )
You can’t perform that action at this time.
0 commit comments