CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
gbaranski

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: gbaranski/quizizz-cheat
Path: blob/master/webpack.config.js
Views: 2222
1
const path = require('path');
2
const copyPlugin = require('copy-webpack-plugin');
3
const obfuscator = require('webpack-obfuscator');
4
5
6
7
module.exports = {
8
entry: './src/index.ts',
9
module: {
10
rules: [
11
{
12
test: /\.tsx?$/,
13
use: 'ts-loader',
14
exclude: /node_modules/,
15
},
16
],
17
},
18
resolve: {
19
extensions: [ '.tsx', '.ts', '.js' ],
20
},
21
output: {
22
filename: 'bundle.js',
23
path: path.resolve(__dirname, 'dist'),
24
},
25
plugins: [
26
new obfuscator ({
27
rotateStringArray: true,
28
splitStrings: true,
29
})
30
],
31
};
32
33