Closed michaelLoeffelmann closed 6 years ago
@LrMiLoef did you npm install
and npm run dev
in your /vendor/laravel/nova
directory?
Here use this bash script if you're lazy like me 😇
#!/bin/sh
cd ./vendor/laravel/nova
mv webpack.mix.js.dist webpack.mix.js
npm i
npm run dev
rm -rf node_modules
cd -
php artisan nova:publish
See solution above.
Don't you think that this details have to be in the Nova documentation? This and several others stuffs still out of the documentation, now is kind of limbo all the potential that represent the customization of tools/cards/fields, I mean is too basic the actual documentation about it.
@LrMiLoef @miharbi
I've created a PR to add the script that @techouse wrote to the official documentation.
To get Nova in Vue dev mode, I've added this command to package.json:
"build-nova-dev-mode": "cd ./vendor/laravel/nova && mv webpack.mix.js.dist webpack.mix.js && npm i && npm run dev && rm -rf node_modules && cd - && php artisan nova:publish"
Again, use npm ci
and not npm install
Here use this bash script if you're lazy like me 😇
#!/bin/sh cd ./vendor/laravel/nova mv webpack.mix.js.dist webpack.mix.js npm i npm run dev rm -rf node_modules cd - php artisan nova:publish
npm run dev
produced dozens of errors for me and broke my local environment. Use this code with caution!
Hi, i just started building a new tool for laravel nova. When i navigate to
./nova-components/MyComponent
and runnpm run watch
, everything is getting compiled and is also running, but i can't see the vue devtools.By adding
Vue.config.devtools = true
toMyComponent/resources/js/tool.js
, the devtools are available. Is that the only way to enable devtools in webpack's watch-mode?