2023-01-18 00:37:58 +04:00
|
|
|
// Generated using webpack-cli https://github.com/webpack/webpack-cli
|
|
|
|
|
|
|
|
const path = require('path');
|
|
|
|
const ReplacePlugin = require('webpack-plugin-replace');
|
|
|
|
|
2023-01-18 02:02:21 +04:00
|
|
|
// const mode = 'production';
|
|
|
|
const mode = 'development';
|
2023-01-18 00:37:58 +04:00
|
|
|
|
2023-01-18 02:02:21 +04:00
|
|
|
const config = {
|
2023-01-18 00:37:58 +04:00
|
|
|
mode: mode,
|
|
|
|
entry: './src/index.ts',
|
|
|
|
output: {
|
|
|
|
path: path.resolve('dist'),
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.(js|ts|tsx)$/i,
|
2023-01-18 02:02:21 +04:00
|
|
|
loader: 'ts-loader',
|
2023-01-18 00:37:58 +04:00
|
|
|
exclude: ['/node_modules/'],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new ReplacePlugin({
|
|
|
|
values: {
|
2023-01-18 02:02:21 +04:00
|
|
|
'__marine__': '__marine__10',
|
|
|
|
'__avm__': '__avm__10',
|
2023-01-18 00:37:58 +04:00
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
2023-01-18 02:02:21 +04:00
|
|
|
};
|
2023-01-18 00:37:58 +04:00
|
|
|
|
|
|
|
module.exports = () => {
|
2023-01-18 02:02:21 +04:00
|
|
|
return config;
|
2023-01-18 00:37:58 +04:00
|
|
|
};
|