less prototype, less bad code implementation of CCHM type theory
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.

36 lines
684 B

  1. const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
  2. const path = require('path');
  3. module.exports = {
  4. mode: 'development',
  5. entry: './src/index.ts',
  6. module: {
  7. rules: [
  8. {
  9. test: /\.tsx?$/,
  10. use: 'ts-loader',
  11. exclude: /node_modules/,
  12. },
  13. {
  14. test: /\.css$/,
  15. use: ['style-loader', 'css-loader']
  16. },
  17. {
  18. test: /\.ttf$/,
  19. use: ['file-loader']
  20. }
  21. ],
  22. },
  23. resolve: {
  24. extensions: ['.tsx', '.ts', '.js'],
  25. },
  26. output: {
  27. filename: 'bundle.js',
  28. path: path.resolve(__dirname, 'dist'),
  29. },
  30. plugins: [
  31. new MonacoWebpackPlugin({
  32. languages: [],
  33. })
  34. ]
  35. };