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.

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