fix: proxy webpack setting

- it allows download tarballls in the same origin
- update webpack dev server
- add scenario for blob
This commit is contained in:
Juan Picado @jotadeveloper
2019-07-28 11:49:02 +02:00
parent 9d006ad6f7
commit 5c484bba9a
5 changed files with 359 additions and 196 deletions

View File

@@ -32,7 +32,7 @@ new WebpackDevServer(compiler, {
},
proxy: [
{
context: ['/-/verdaccio/logo', '/-/verdaccio/packages', '/-/static/logo.png'],
context: ['/-/verdaccio/**', '**/*.tgz'],
target: 'http://localhost:8080',
},
],

View File

@@ -41,7 +41,7 @@ export default {
scope: '',
logo: 'https://verdaccio.org/img/logo/symbol/svg/verdaccio-tiny.svg',
filename: 'index.html',
verdaccioURL: '//localhost:8080',
verdaccioURL: '//localhost:4872',
template: `${env.SRC_ROOT}/template/index.html`,
debug: true,
inject: true,