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.

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