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.

37 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. },
  16. output: {
  17. path: __dirname + '/static/bundle',
  18. filename: '[name].js'
  19. },
  20. module: {
  21. rules: [
  22. {
  23. test: /\.vue$/,
  24. loader: 'vue-loader'
  25. }
  26. ]
  27. },
  28. plugins: [
  29. new VueLoaderPlugin()
  30. ],
  31. resolve: {
  32. extensions: ['.js', '.vue'],
  33. alias: {
  34. vue$: 'vue/dist/vue.esm.js',
  35. },
  36. },
  37. }