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.
 
 
 
 

48 lines
1.1 KiB

  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. test: /\.(css|less)$/,
  22. use: [{
  23. loader: "css-loader" // translates CSS into CommonJS
  24. }]
  25. }
  26. ]
  27. },
  28. plugins: [
  29. new HtmlWebpackPlugin({
  30. template: './src/index.html'
  31. }),
  32. new CopyWebpackPlugin([
  33. { from: 'src/public', to: '' }
  34. ])
  35. ],
  36. devServer: {
  37. historyApiFallback: true
  38. },
  39. externals: {
  40. // global app config object
  41. config: JSON.stringify({
  42. production: true,
  43. apiUrl: '/api'
  44. })
  45. }
  46. };