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.

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