The Bubble web UI in VueJS
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 1.3 KiB

il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * Copyright (c) 2020 Bubble, Inc. All rights reserved.
  3. * For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. */
  5. const HtmlWebpackPlugin = require('html-webpack-plugin');
  6. const CopyWebpackPlugin = require('copy-webpack-plugin');
  7. module.exports = {
  8. mode: 'development',
  9. resolve: {
  10. extensions: ['.js', '.vue']
  11. },
  12. module: {
  13. rules: [
  14. {
  15. test: /\.vue?$/,
  16. exclude: /(node_modules)/,
  17. use: 'vue-loader'
  18. },
  19. {
  20. test: /\.js?$/,
  21. exclude: /(node_modules)/,
  22. use: 'babel-loader'
  23. },
  24. {
  25. test: /\.(css|less)$/,
  26. use: [{
  27. loader: "css-loader" // translates CSS into CommonJS
  28. }]
  29. }
  30. ]
  31. },
  32. plugins: [
  33. new HtmlWebpackPlugin({
  34. template: './src/index.html'
  35. }),
  36. new CopyWebpackPlugin([
  37. { from: 'src/public', to: '' }
  38. ])
  39. ],
  40. devServer: {
  41. historyApiFallback: true
  42. },
  43. externals: {
  44. // global app config object
  45. config: JSON.stringify({
  46. production: true,
  47. apiUrl: '/api'
  48. })
  49. }
  50. };