Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

webpack.config.js 711 B

il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
il y a 1 an
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. };