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.
 
 
 
 

41 lines
928 B

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