Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

webpack.config.js 711 B

1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
1 yıl önce
123456789101112131415161718192021222324252627282930313233
  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. entry: {
  7. main: {
  8. import: './main.js',
  9. filename: 'app.js',
  10. },
  11. },
  12. output: {
  13. path: path.resolve(__dirname, 'assets'),
  14. },
  15. module: {
  16. rules: [
  17. {test: /\.vue$/, use: 'vue-loader'},
  18. {test: /\.css$/, use: ['style-loader', 'css-loader']}
  19. ]
  20. },
  21. devServer: {
  22. static: './assets',
  23. proxy: {
  24. '*': {target: 'http://localhost:8001',
  25. secure: false,
  26. changeOrigin: true
  27. }
  28. }
  29. },
  30. // Required for also applying rules to sections of SFC
  31. plugins: [new VueLoaderPlugin(), new Dotenv({systemVars: true})],
  32. };