123456789101112131415161718192021222324252627282930313233343536373839 |
- const path = require('path');
- var modules_path = path.resolve(__dirname, './bin');
- module.exports = {
- target: 'web',
-
- entry: './src/JSEncrypt.ts',
- output: {
- filename: 'jsencrypt.js',
- chunkFilename: 'modules/[chunkhash].[name].chunk.js',
- path: modules_path,
- strictModuleExceptionHandling: true
- },
- resolve: {
-
- extensions: ['.ts', '.tsx', '.js']
- },
- module: {
- rules: [
-
- {
- test: /\.tsx?$/,
- use: [
- {
- loader: 'ts-loader',
- options: {
- transpileOnly: false,
- configFile: require.resolve("./tsconfig.json")
- }
- },
- ]
- },
- ]
- },
- };
|