webpack.config.js 387 B

12345678910111213141516171819202122
  1. const path = require('path');
  2. module.exports = {
  3. entry: './index.ts',
  4. mode: 'production',
  5. module: {
  6. rules: [
  7. {
  8. test: /\.tsx?$/,
  9. use: 'ts-loader',
  10. exclude: /node_modules/
  11. }
  12. ]
  13. },
  14. resolve: {
  15. extensions: [ '.tsx', '.ts', '.js' ]
  16. },
  17. output: {
  18. filename: 'line-i18n.bundle.js',
  19. path: path.resolve(__dirname, 'dist')
  20. }
  21. };