1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- const JavaScriptObfuscator = require("webpack-obfuscator");
- const obfuscator = new JavaScriptObfuscator(
- {
- rotateUnicodeArray: true,
- compact: true,
- controlFlowFlattening: false,
- controlFlowFlatteningThreshold: 0.8,
- deadCodeInjection: true,
- deadCodeInjectionThreshold: 0.5,
- debugProtection: false,
- debugProtectionInterval: true,
- disableConsoleOutput: true,
- domainLock: [],
- identifierNamesGenerator: "hexadecimal",
- identifiersPrefix: "",
- inputFileName: "",
- log: false,
- renameGlobals: false,
- reservedNames: [],
- reservedStrings: [],
- rotateStringArray: true,
- seed: 0,
- selfDefending: false,
- sourceMap: false,
- sourceMapBaseUrl: "",
- sourceMapFileName: "",
- sourceMapMode: "separate",
- stringArray: true,
- stringArrayEncoding: ["base64"],
- stringArrayThreshold: 0.8,
- target: "browser",
- transformObjectKeys: false,
- unicodeEscapeSequence: true,
- },
- [""]
- );
- const autoprefixer = require("autoprefixer");
- module.exports = {
- publicPath: "./",
- css: {
- loaderOptions: {
- postcss: {
- test: /.styl(us)?$/,
- plugins: [require("postcss-px2rem")({ remUnit: 16 })],
- },
- sass: {
- data: '@import "./src/assets/css/common.scss";',
- },
- },
- },
- devServer: {
- port: 8080,
- disableHostCheck: true,
- proxy: {
-
- "/": {
- target: "https://ceshi.gyxqcdz.com",
-
-
-
-
- changeOrigin: true,
- rewrite: (path) => path.replace(/^\/api/, ""),
- },
- },
- },
- configureWebpack: {
- plugins: (() => {
- if (process.env.NODE_ENV === "development") {
- return [];
- } else {
- return [];
-
- }
- })(),
- },
- };
|