The Bubble web UI in VueJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
997 B

  1. var path = require('path');
  2. var HtmlWebpackPlugin = require('html-webpack-plugin');
  3. var CopyWebpackPlugin = require('copy-webpack-plugin');
  4. module.exports = {
  5. mode: 'development',
  6. resolve: {
  7. extensions: ['.js', '.vue']
  8. },
  9. module: {
  10. rules: [
  11. {
  12. test: /\.vue?$/,
  13. exclude: /(node_modules)/,
  14. use: 'vue-loader'
  15. },
  16. {
  17. test: /\.js?$/,
  18. exclude: /(node_modules)/,
  19. use: 'babel-loader'
  20. }
  21. ]
  22. },
  23. plugins: [
  24. new HtmlWebpackPlugin({
  25. template: './src/index.html'
  26. }),
  27. new CopyWebpackPlugin([
  28. { from: 'src/public', to: '' }
  29. ])
  30. ],
  31. devServer: {
  32. historyApiFallback: true
  33. },
  34. externals: {
  35. // global app config object
  36. config: JSON.stringify({
  37. // apiUrl: 'http://localhost:4000'
  38. apiUrl: '/api'
  39. })
  40. }
  41. }