webpack.config.js 343 B

1234567891011121314151617181920212223
  1. const path = require('path');
  2. module.exports = {
  3. // The entry point
  4. entry: './src/js/main.ts',
  5. module: {
  6. rules: [
  7. {
  8. test: /\.ts$/,
  9. use: 'ts-loader',
  10. exclude: /(node_modules|\.test\.ts$)/
  11. }
  12. ]
  13. },
  14. resolve: {
  15. extensions: ['.ts']
  16. },
  17. output: {
  18. filename: 'main.js',
  19. path: path.resolve(__dirname, 'build/js')
  20. }
  21. }