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.

39 lines
1.2 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. const process = require('process');
  2. const VueLoaderPlugin = require('vue-loader/lib/plugin')
  3. module.exports = {
  4. mode: process.env.DEBUG === 'False' ? 'production' : 'development',
  5. entry: {
  6. 'sequence_labeling': './static/js/sequence_labeling.js',
  7. 'document_classification': './static/js/document_classification.js',
  8. 'seq2seq': './static/js/seq2seq.js',
  9. 'projects': './static/js/projects.js',
  10. 'stats': './static/js/stats.js',
  11. 'label': './static/js/label.js',
  12. 'guideline': './static/js/guideline.js',
  13. 'demo_text_classification': './static/js/demo/demo_text_classification.js',
  14. 'demo_named_entity': './static/js/demo/demo_named_entity.js',
  15. 'demo_translation': './static/js/demo/demo_translation.js',
  16. 'upload': './static/js/upload.js'
  17. },
  18. output: {
  19. path: __dirname + '/static/bundle',
  20. filename: '[name].js'
  21. },
  22. module: {
  23. rules: [
  24. {
  25. test: /\.vue$/,
  26. loader: 'vue-loader'
  27. }
  28. ]
  29. },
  30. plugins: [
  31. new VueLoaderPlugin()
  32. ],
  33. resolve: {
  34. extensions: ['.js', '.vue'],
  35. alias: {
  36. vue$: 'vue/dist/vue.esm.js',
  37. },
  38. },
  39. }