I'm making an extension and using npm run build
(with vue cli) to make my option page. I need to interact with chrome.local.storage. So for now every change I need to make a new build and then test it in the extension.
It would be nice to have some "live build folder"
I can use esbuild or esbuild-vue, but with Vuetify on my project I cant get it working
For now I'm using esbuild-vue:
const vuePlugin = require('esbuild-vue');
require('esbuild').build({
entryPoints: ['main.js'],
bundle: true,
outfile: 'out.js',
plugins: [vuePlugin()],
watch: {
onRebuild(error, result) {
if (error) console.error('watch build failed:', error)
else console.log('watch build succeeded:', result)
},
},
define: {
"process.env.NODE_ENV": JSON.stringify("development"),
},
});