Selaa lähdekoodia

do not commit actual webpack.config.dev.js

pull/48/head
Jonathan Cobb 4 vuotta sitten
vanhempi
commit
6e0c408113
2 muutettua tiedostoa jossa 8 lisäystä ja 4 poistoa
  1. +1
    -0
      .gitignore
  2. +7
    -4
      webpack.config.dev-example.js

+ 1
- 0
.gitignore Näytä tiedosto

@@ -37,3 +37,4 @@ typings
dist
*~
.DS_Store
webpack.config.dev.js

webpack.config.dev.js → webpack.config.dev-example.js Näytä tiedosto

@@ -2,15 +2,18 @@
* Copyright (c) 2020 Bubble, Inc. All rights reserved.
* For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
*/

// -------------------------------------------------------------
// Copy this file to webpack.config.dev.js to use in development
// -------------------------------------------------------------

const webpackMerge = require('webpack-merge');

module.exports = webpackMerge.merge(require('./webpack.config.js'), {
mode: 'development',
devServer: {
proxy: {
// '/api': 'http://beta.bubv.net:8888',
'/api': 'http://shent-ih538-8m85f-rj97o.bubv.net'
// '/api': 'https://beta.bubv.net/',
},
'/api': 'http://example.com:8888' // change this to wherever your bubble API is running
}
},
});

Ladataan…
Peruuta
Tallenna