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.

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