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.

33 lines
858 B

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