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.

38 lines
1.1 KiB

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