Skip to content

Commit c4a2719

Browse files
authored
Merge pull request #6 from crynobone/patch-1
Use `nova-kit/nova-packages-tool` to reduce breaking change to `laravel-nova` requiring new build.
2 parents dff8b6f + 62d85a9 commit c4a2719

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

composer.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
],
2525
"require": {
2626
"php": "^8.0",
27-
"laravel/nova": "^4.0"
27+
"laravel/nova": "^4.0",
28+
"nova-kit/nova-packages-tool": "^1.0"
2829
},
2930
"autoload": {
3031
"psr-4": {
@@ -41,6 +42,12 @@
4142
"config": {
4243
"sort-packages": true
4344
},
45+
"repositories": [
46+
{
47+
"type": "composer",
48+
"url": "https://nova.laravel.com"
49+
}
50+
],
4451
"minimum-stability": "dev",
4552
"prefer-stable": true
4653
}

dist/js/field.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6043,4 +6043,4 @@ module.exports = Vue;
60436043
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
60446044
/******/
60456045
/******/ })()
6046-
;
6046+
;

dist/js/field.js.LICENSE.txt

-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@
33
license: MIT
44
http://www.jacklmoore.com/autosize
55
*/
6-
7-
/*!
8-
* vuex v4.0.2
9-
* (c) 2021 Evan You
10-
* @license MIT
11-
*/

nova-mix.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class NovaExtension {
2626

2727
webpackConfig.resolve.alias = {
2828
...(webpackConfig.resolve.alias || {}),
29-
'laravel-nova': path.join(
30-
__dirname,
31-
'../../vendor/laravel/nova/resources/js/mixins/packages.js'
32-
),
29+
// 'laravel-nova': path.join(
30+
// __dirname,
31+
// '../../vendor/laravel/nova/resources/js/mixins/packages.js'
32+
// ),
3333
}
3434

3535
webpackConfig.output = {

src/FieldServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function boot()
1717
{
1818
Nova::serving(function (ServingNova $event) {
1919
Nova::script('values', __DIR__.'/../dist/js/field.js');
20-
Nova::style('values', __DIR__.'/../dist/css/field.css');
20+
// Nova::style('values', __DIR__.'/../dist/css/field.css');
2121
});
2222
}
2323

0 commit comments

Comments
 (0)