The Bubble web UI in VueJS
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

59 lines
1.3 KiB

  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. {
  28. loader: 'css-loader', // translates CSS into CommonJS
  29. },
  30. ],
  31. },
  32. {
  33. test: /\.s[ac]ss$/i,
  34. use: ['style-loader', 'css-loader', 'sass-loader'],
  35. },
  36. ],
  37. },
  38. plugins: [
  39. new HtmlWebpackPlugin({
  40. template: './src/index.html',
  41. }),
  42. new CopyWebpackPlugin([{ from: 'src/public', to: '' }]),
  43. ],
  44. devServer: {
  45. historyApiFallback: true,
  46. // proxy: {
  47. // '/api': 'http://beta.bubv.net:8888'
  48. // }
  49. },
  50. externals: {
  51. // global app config object
  52. config: JSON.stringify({
  53. production: true,
  54. apiUrl: '/api',
  55. }),
  56. },
  57. };