Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

29 lines
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. };