Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

29 rindas
638 B

  1. const { VueLoaderPlugin } = require('vue-loader')
  2. const path = require('path')
  3. const Dotenv = require('dotenv-webpack')
  4. module.exports = {
  5. entry: './main.js',
  6. output: {
  7. path: path.resolve(__dirname, 'assets'),
  8. filename: 'app.js'
  9. },
  10. module: {
  11. rules: [
  12. {test: /\.vue$/, use: 'vue-loader'},
  13. {test: /\.css$/, use: ['style-loader', 'css-loader']}
  14. ]
  15. },
  16. devServer: {
  17. static: './assets',
  18. proxy: {
  19. '*': {target: 'http://localhost:8001',
  20. secure: false,
  21. changeOrigin: true
  22. }
  23. }
  24. },
  25. // Required for also applying rules to sections of SFC
  26. plugins: [new VueLoaderPlugin(), new Dotenv({systemVars: true})],
  27. };