Blame view

api/dashboard/vue.config.js 760 Bytes
0d8c0f816   Thanasis Naskos   initial commit
1
2
3
  const path = require('path')
  
  module.exports = {
c0c5f5114   Chris Bellas   Added keycloak fr...
4
      // proxy API requests to localhost during development
0d8c0f816   Thanasis Naskos   initial commit
5
      devServer: {
c0c5f5114   Chris Bellas   Added keycloak fr...
6
          proxy: 'http://localhost:8000'
0d8c0f816   Thanasis Naskos   initial commit
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
      },
  
      // output built static files to Laravel's public dir.
      // note the "build" script in package.json needs to be modified as well.
      outputDir: '../public',
  
      // modify the location of the generated HTML file.
      // make sure to do this only in production.
      indexPath: process.env.NODE_ENV === 'production'
          ? '../resources/views/index.blade.php'
          : 'index.html',
  
      configureWebpack: {
          resolve: {
              extensions: ['.js', '.json', '.vue'],
              alias: {
                  '~': path.join(__dirname, './src')
              }
          }
      }
  }