Install prebuilt Vue DevTools extension to use in a NW.js application
-
npm install nw-vue-devtools-prebuilt
-
Add this to your
package.json
of your NW.js app:"chromium-args": "--load-extension='./node_modules/nw-vue-devtools-prebuilt/extension'"
-
Vue.js must be in use in your app, and cannot be minified (
vue.js
notvue.min.js
).
You may need to add Vue.config.devtools = true;
to your main.js
file.
If you are using nwjs-builder-phoenix
then add in "chromium-args"
to your package.json
build.strippedProperties
array (more info).