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.

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