mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
widget: verification works
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
const path = require('path');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
||||
//const WasmPackPlugin = require('@wasm-tool/wasm-pack-plugin');
|
||||
|
||||
module.exports = {
|
||||
devtool: 'inline-source-map',
|
||||
mode: 'development',
|
||||
//mode: 'production',
|
||||
entry: {
|
||||
bundle: './templates/index.ts',
|
||||
bundle: './templates/index.ts',
|
||||
mobile: './templates/mobile.ts',
|
||||
verificationWidget: './templates/widget/index.ts',
|
||||
},
|
||||
@@ -36,14 +37,19 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.ts', '.tsx', '.js'],
|
||||
},
|
||||
|
||||
plugins: [new MiniCssExtractPlugin()],
|
||||
plugins: [
|
||||
new MiniCssExtractPlugin(),
|
||||
// new WasmPackPlugin({
|
||||
// crateDirectory: __dirname,
|
||||
// outName: "pow.wasm",
|
||||
// }),
|
||||
],
|
||||
optimization: {
|
||||
minimizer: [
|
||||
// For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
|
||||
@@ -51,4 +57,13 @@ module.exports = {
|
||||
new CssMinimizerPlugin(),
|
||||
],
|
||||
},
|
||||
// experiments: {
|
||||
// // executeModule: true,
|
||||
// // outputModule: true,
|
||||
// //syncWebAssembly: true,
|
||||
// // topLevelAwait: true,
|
||||
// asyncWebAssembly: true,
|
||||
// // layers: true,
|
||||
// // lazyCompilation: true,
|
||||
// },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user