YuraDev / vue-chrome-extension-template

vue chrome extension template
MIT License
651 stars 104 forks source link

Trying to build to install on Chrome #16

Open Johums opened 6 years ago

Johums commented 6 years ago

when I run npm run build to generate out in build folder and starting to install on chrome it raise Uncaught ReferenceError: webpackJsonpname is not defined

what's that...

malinbranduse commented 5 years ago

Same for me...

DmitriyKurto commented 5 years ago

@Johums and @malinushj, try to add strings 'manifest' and 'vendor' in file webpack.base.js for pages that you made. For example:

plugins: [
  htmlPage('popup', 'popup', ['manifest', 'vendor', 'popup']),  
  htmlPage('background', 'background', ['manifest', 'vendor', 'background']),  
  ...  
]
jmealo commented 5 years ago

@DmitriyKurto: thanks, this worked for me as well.

malinbranduse commented 5 years ago

@DmitriyKurto thanks man, though I ended up using this instead: https://github.com/Kocal/vue-web-extension

huxiaoqiang commented 5 years ago

@Johums and @malinushj, try to add strings 'manifest' and 'vendor' in file webpack.base.js for pages that you made. For example:

plugins: [
  htmlPage('popup', 'popup', ['manifest', 'vendor', 'popup']),  
  htmlPage('background', 'background', ['manifest', 'vendor', 'background']),  
  ...  
]

Hi @DmitriyKurto Thanks for your answer .

I try to add manifest and vendor in file webpack.base.js, which is as follow:

    htmlPage('app', 'app', ['manifest', 'vendor', 'tab']),
    htmlPage('popup', 'popup', ['manifest', 'vendor','popup']),
    htmlPage('panel', 'panel', ['manifest', 'vendor', 'panel']),
    htmlPage('devtools', 'devtools', ['manifest', 'vendor', 'devtools']),
    htmlPage('options', 'options', ['manifest', 'vendor', 'options']),
    htmlPage('background', 'background', ['manifest', 'vendor', 'background']),

but I get the same error.

 Uncaught ReferenceError: webpackJsonp_name_ is not defined

Is there any other option I should do? thanks

DmitriyKurto commented 5 years ago

@huxiaoqiang looks like all right. wrote you an email